#define yy_create_buffer ptx__create_buffer
#define yy_delete_buffer ptx__delete_buffer
#define yy_scan_buffer ptx__scan_buffer
#define yy_scan_string ptx__scan_string
#define yy_scan_bytes ptx__scan_bytes
#define yy_flex_debug ptx__flex_debug
#define yy_init_buffer ptx__init_buffer
#define yy_flush_buffer ptx__flush_buffer
#define yy_load_buffer_state ptx__load_buffer_state
#define yy_switch_to_buffer ptx__switch_to_buffer
#define yyin ptx_in
#define yyleng ptx_leng
#define yylex ptx_lex
#define yyout ptx_out
#define yyrestart ptx_restart
#define yytext ptx_text
#define yylineno ptx_lineno

/* A lexical scanner generated by flex */

/* Scanner skeleton version:
 * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
 */

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5

#include <stdio.h>
#include <unistd.h>


/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef c_plusplus
#ifndef __cplusplus
#define __cplusplus
#endif
#endif


#ifdef __cplusplus

#include <stdlib.h>

/* Use prototypes in function declarations. */
#define YY_USE_PROTOS

/* The "const" storage-class-modifier is valid. */
#define YY_USE_CONST

#else	/* ! __cplusplus */

#if __STDC__

#define YY_USE_PROTOS
#define YY_USE_CONST

#endif	/* __STDC__ */
#endif	/* ! __cplusplus */

#ifdef __TURBOC__
 #pragma warn -rch
 #pragma warn -use
#include <io.h>
#include <stdlib.h>
#define YY_USE_CONST
#define YY_USE_PROTOS
#endif

#ifdef YY_USE_CONST
#define yyconst const
#else
#define yyconst
#endif


#ifdef YY_USE_PROTOS
#define YY_PROTO(proto) proto
#else
#define YY_PROTO(proto) ()
#endif

/* Returned upon end-of-file. */
#define YY_NULL 0

/* Promotes a possibly negative, possibly signed char to an unsigned
 * integer for use as an array index.  If the signed char is negative,
 * we want to instead treat it as an 8-bit unsigned char, hence the
 * double cast.
 */
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)

/* Enter a start condition.  This macro really ought to take a parameter,
 * but we do it the disgusting crufty way forced on us by the ()-less
 * definition of BEGIN.
 */
#define BEGIN yy_start = 1 + 2 *

/* Translate the current start state into a value that can be later handed
 * to BEGIN to return to the state.  The YYSTATE alias is for lex
 * compatibility.
 */
#define YY_START ((yy_start - 1) / 2)
#define YYSTATE YY_START

/* Action number for EOF rule of a given start state. */
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)

/* Special action meaning "start processing a new file". */
#define YY_NEW_FILE yyrestart( yyin )

#define YY_END_OF_BUFFER_CHAR 0

/* Size of default input buffer. */
#define YY_BUF_SIZE 16384

typedef struct yy_buffer_state *YY_BUFFER_STATE;

extern int yyleng;
extern FILE *yyin, *yyout;

#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2

/* The funky do-while in the following #define is used to turn the definition
 * int a single C statement (which needs a semi-colon terminator).  This
 * avoids problems with code like:
 *
 * 	if ( condition_holds )
 *		yyless( 5 );
 *	else
 *		do_something_else();
 *
 * Prior to using the do-while the compiler would get upset at the
 * "else" because it interpreted the "if" statement as being all
 * done when it reached the ';' after the yyless() call.
 */

/* Return all but the first 'n' matched characters back to the input stream. */

#define yyless(n) \
	do \
		{ \
		/* Undo effects of setting up yytext. */ \
		*yy_cp = yy_hold_char; \
		YY_RESTORE_YY_MORE_OFFSET \
		yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
		YY_DO_BEFORE_ACTION; /* set up yytext again */ \
		} \
	while ( 0 )

#define unput(c) yyunput( c, yytext_ptr )

/* The following is because we cannot portably get our hands on size_t
 * (without autoconf's help, which isn't available because we want
 * flex-generated scanners to compile on their own).
 */
typedef unsigned int yy_size_t;


struct yy_buffer_state
	{
	FILE *yy_input_file;

	char *yy_ch_buf;		/* input buffer */
	char *yy_buf_pos;		/* current position in input buffer */

	/* Size of input buffer in bytes, not including room for EOB
	 * characters.
	 */
	yy_size_t yy_buf_size;

	/* Number of characters read into yy_ch_buf, not including EOB
	 * characters.
	 */
	int yy_n_chars;

	/* Whether we "own" the buffer - i.e., we know we created it,
	 * and can realloc() it to grow it, and should free() it to
	 * delete it.
	 */
	int yy_is_our_buffer;

	/* Whether this is an "interactive" input source; if so, and
	 * if we're using stdio for input, then we want to use getc()
	 * instead of fread(), to make sure we stop fetching input after
	 * each newline.
	 */
	int yy_is_interactive;

	/* Whether we're considered to be at the beginning of a line.
	 * If so, '^' rules will be active on the next match, otherwise
	 * not.
	 */
	int yy_at_bol;

	/* Whether to try to fill the input buffer when we reach the
	 * end of it.
	 */
	int yy_fill_buffer;

	int yy_buffer_status;
#define YY_BUFFER_NEW 0
#define YY_BUFFER_NORMAL 1
	/* When an EOF's been seen but there's still some text to process
	 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
	 * shouldn't try reading from the input source any more.  We might
	 * still have a bunch of tokens to match, though, because of
	 * possible backing-up.
	 *
	 * When we actually see the EOF, we change the status to "new"
	 * (via yyrestart()), so that the user can continue scanning by
	 * just pointing yyin at a new input file.
	 */
#define YY_BUFFER_EOF_PENDING 2
	};

static YY_BUFFER_STATE yy_current_buffer = 0;

/* We provide macros for accessing buffer states in case in the
 * future we want to put the buffer states in a more general
 * "scanner state".
 */
#define YY_CURRENT_BUFFER yy_current_buffer


/* yy_hold_char holds the character lost when yytext is formed. */
static char yy_hold_char;

static int yy_n_chars;		/* number of characters read into yy_ch_buf */


int yyleng;

/* Points to current character in buffer. */
static char *yy_c_buf_p = (char *) 0;
static int yy_init = 1;		/* whether we need to initialize */
static int yy_start = 0;	/* start state number */

/* Flag which is used to allow yywrap()'s to do buffer switches
 * instead of setting up a fresh yyin.  A bit of a hack ...
 */
static int yy_did_buffer_switch_on_eof;

void yyrestart YY_PROTO(( FILE *input_file ));

void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
void yy_load_buffer_state YY_PROTO(( void ));
YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )

YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));

static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
static void yy_flex_free YY_PROTO(( void * ));

#define yy_new_buffer yy_create_buffer

#define yy_set_interactive(is_interactive) \
	{ \
	if ( ! yy_current_buffer ) \
		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
	yy_current_buffer->yy_is_interactive = is_interactive; \
	}

#define yy_set_bol(at_bol) \
	{ \
	if ( ! yy_current_buffer ) \
		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
	yy_current_buffer->yy_at_bol = at_bol; \
	}

#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)


#define YY_USES_REJECT

#define yywrap() 1
#define YY_SKIP_YYWRAP
typedef unsigned char YY_CHAR;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
typedef int yy_state_type;
extern int yylineno;
int yylineno = 1;
extern char *yytext;
#define yytext_ptr yytext

static yy_state_type yy_get_previous_state YY_PROTO(( void ));
static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
static int yy_get_next_buffer YY_PROTO(( void ));
static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));

/* Done after the current pattern has been matched and before the
 * corresponding action - sets up yytext.
 */
#define YY_DO_BEFORE_ACTION \
	yytext_ptr = yy_bp; \
	yyleng = (int) (yy_cp - yy_bp); \
	yy_hold_char = *yy_cp; \
	*yy_cp = '\0'; \
	yy_c_buf_p = yy_cp;

#define YY_NUM_RULES 190
#define YY_END_OF_BUFFER 191
static yyconst short int yy_acclist[858] =
    {   0,
      188,  188,  191,  189,  190,  180,  189,  190,  178,  190,
      179,  189,  190,  172,  189,  190,  186,  189,  190,   81,
      189,  190,   81,  189,  190,  168,  189,  190,  169,  189,
      190,  161,  189,  190,  162,  189,  190,  189,  190,  176,
      189,  190,  189,  190,   83,  189,  190,   83,  189,  190,
      170,  189,  190,  171,  189,  190,  166,  189,  190,  173,
      189,  190,  167,  189,  190,  163,  189,  190,  164,  189,
      190,  165,  189,  190,   81,  189,  190,   81,  189,  190,
       81,  189,  190,   81,  189,  190,   81,  189,  190,   81,
      189,  190,   81,  189,  190,   81,  189,  190,   81,  189,

      190,   81,  189,  190,   81,  189,  190,   81,  189,  190,
       81,  189,  190,   81,  189,  190,  174,  189,  190,  175,
      189,  190,  188,  190,  187,  190,  188,  190,  188,  190,
      188,  190,  188,  190,  188,  190,  188,  190,  188,  190,
      188,  190,  188,  190,  188,  190,  188,  190,  188,  190,
      188,  190,  188,  190,  183,  190,  185,  190,  184,  190,
      183,  190,  183,  190,  183,  190,  183,  190,  183,  190,
      183,  190,  183,  190,  183,  190,  183,  190,  183,  190,
      183,  190,  183,  190,  183,  190,  183,  190,  189,  190,
      178,   81,   81,   81,   81,   81,   83,  155,  156,  157,

      158,  159,  160,  181,  177,   83,   81,   81,   81,   81,
       81,   81,   81,   81,   81,   81,   81,   81,   14,   81,
       81,   81,   81,   81,   81,   81,   81,   81,   26,   81,
       81,   81,   81,   81,   81,   81,   81,   81,   81,   40,
       81,   81,   81,   81,   81,   81,  188,  188,  188,  188,
      188,  188,  188,  188,  188,  188,  188,  188,  188,   14,
      188,  188,  188,  188,  188,  188,  188,  188,  188,   26,
      188,  188,  188,  188,  188,  188,  188,  188,  188,  188,
       40,  188,  188,  188,  188,  188,  188,  183,  182,  183,
      183,  183,  183,  183,  183,  183,  183,  183,  183,  183,

      183,   14,  183,  183,  183,  183,  183,  183,  183,  183,
      183,   26,  183,  183,  183,  183,  183,  183,  183,  183,
      183,  183,   40,  183,  183,  183,  183,  183,  183,   81,
       81,   81,   81,   81,   81,  152,  153,  154,   98,  115,
      120,  140,  119,  123,  124,  118,  121,  122,  117,  116,
      143,  131,  129,  132,  130,   87,   91,  103,  104,  105,
      177,   82,   84,    1,   81,    2,   81,    3,   81,   81,
       81,    6,   81,   81,   81,   81,    9,   81,   10,   81,
       11,   81,   12,   81,   81,   81,   16,   81,   18,   81,
       19,   81,   81,   20,   81,   21,   81,   23,   81,   24,

       81,   25,   81,   27,   81,   48,   81,   28,   81,   29,
       81,   81,   31,   81,   81,   34,   81,   35,   81,   36,
       81,   37,   81,   81,   81,   81,   42,   81,   43,   81,
       81,   81,   46,   81,    1,  188,    2,  188,    3,  188,
      188,  188,    6,  188,  188,  188,  188,    9,  188,   10,
      188,   11,  188,   12,  188,  188,  188,   16,  188,   18,
      188,   19,  188,  188,   20,  188,   21,  188,   23,  188,
       24,  188,   25,  188,   27,  188,   48,  188,   28,  188,
       29,  188,  188,   31,  188,  188,   34,  188,   35,  188,
       36,  188,   37,  188,  188,  188,  188,   42,  188,   43,

      188,  188,  188,   46,  188,    1,  183,    2,  183,    3,
      183,  183,  183,    6,  183,  183,  183,  183,    9,  183,
       10,  183,   11,  183,   12,  183,  183,  183,   16,  183,
       18,  183,   19,  183,  183,   20,  183,   21,  183,   23,
      183,   24,  183,   25,  183,   27,  183,   48,  183,   28,
      183,   29,  183,  183,   31,  183,  183,   34,  183,   35,
      183,   36,  183,   37,  183,  183,  183,  183,   42,  183,
       43,  183,  183,  183,   46,  183,   81,   81,   81,   81,
       81,   80,   81,  147,  139,  142,  138,   99,  100,  101,
      145,  141,  149,  106,   95,   96,   97,  133,  111,  110,

      148,  109,   61,  108,  151,  150,  113,  107,  112,   63,
      127,  125,  128,  126,   88,   89,   90,  114,   70,   92,
       93,   94,  135,  144,   50,   81,    4,   81,   81,   81,
        7,   81,    8,   81,   13,   81,   81,   81,   81,   81,
       81,   32,   81,   33,   81,   38,   81,   39,   81,   81,
       44,   81,   45,   81,   50,  188,    4,  188,  188,  188,
        7,  188,    8,  188,   13,  188,  188,  188,  188,  188,
      188,   32,  188,   33,  188,   38,  188,   39,  188,  188,
       44,  188,   45,  188,   50,  183,    4,  183,  183,  183,
        7,  183,    8,  183,   13,  183,  183,  183,  183,  183,

      183,   32,  183,   33,  183,   38,  183,   39,  183,  183,
       44,  183,   45,  183,   81,   81,   81,   81,   77,   81,
       52,  146,   57,  137,   58,  102,   66,   68,  134,   81,
       49,   81,   81,   17,   81,   81,   22,   81,   30,   81,
       81,  188,   49,  188,  188,   17,  188,  188,   22,  188,
       30,  188,  188,  183,   49,  183,  183,   17,  183,  183,
       22,  183,   30,  183,  183,   75,   81,   76,   81,   81,
       81,   51,   54,   55,   60,   62,   71,   81,   81,   47,
       81,   81,  188,  188,   47,  188,  188,  183,  183,   47,
      183,  183,   78,   81,   79,   81,  136,   56,   59,   65,

       67,   69,   81,   81,   81,  188,  188,  188,  183,  183,
      183,   74,   64,   72,   73,    5,    5,   81,   81,   81,
        5,  188,  188,  188,    5,  183,  183,  183,   53,   81,
       81,  188,  188,  183,  183,   85,   81,   81,  188,  188,
      183,  183,   15,   15,   81,   41,   41,   81,   15,  188,
       41,  188,   15,  183,   41,  183,   86
    } ;

static yyconst short int yy_accept[766] =
    {   0,
        1,    1,    1,    2,    3,    3,    3,    3,    3,    4,
        6,    9,   11,   14,   17,   20,   23,   26,   29,   32,
       35,   38,   40,   43,   45,   48,   51,   54,   57,   60,
       63,   66,   69,   72,   75,   78,   81,   84,   87,   90,
       93,   96,   99,  102,  105,  108,  111,  114,  117,  120,
      123,  125,  127,  129,  131,  133,  135,  137,  139,  141,
      143,  145,  147,  149,  151,  153,  155,  157,  159,  161,
      163,  165,  167,  169,  171,  173,  175,  177,  179,  181,
      183,  185,  187,  189,  191,  192,  193,  194,  195,  196,
      197,  198,  199,  200,  201,  201,  201,  201,  201,  201,

      201,  201,  201,  201,  201,  201,  201,  201,  201,  201,
      201,  201,  201,  201,  201,  201,  202,  203,  204,  205,
      206,  206,  207,  207,  207,  207,  208,  209,  210,  211,
      212,  213,  214,  215,  216,  217,  218,  219,  221,  222,
      223,  224,  225,  226,  227,  228,  229,  231,  232,  233,
      234,  235,  236,  237,  238,  239,  240,  242,  243,  244,
      245,  246,  247,  248,  249,  250,  251,  252,  253,  254,
      255,  256,  257,  258,  259,  260,  262,  263,  264,  265,
      266,  267,  268,  269,  270,  272,  273,  274,  275,  276,
      277,  278,  279,  280,  281,  283,  284,  285,  286,  287,

      288,  289,  290,  291,  292,  293,  294,  295,  296,  297,
      298,  299,  300,  301,  302,  304,  305,  306,  307,  308,
      309,  310,  311,  312,  314,  315,  316,  317,  318,  319,
      320,  321,  322,  323,  325,  326,  327,  328,  329,  330,
      331,  332,  333,  334,  335,  336,  337,  338,  339,  339,
      339,  339,  339,  339,  339,  339,  340,  340,  340,  340,
      340,  340,  340,  341,  341,  341,  341,  341,  341,  341,
      341,  342,  343,  344,  345,  346,  346,  347,  348,  349,
      350,  350,  350,  350,  351,  351,  352,  352,  352,  352,
      353,  354,  355,  356,  356,  356,  356,  357,  357,  357,

      357,  357,  357,  357,  357,  357,  357,  357,  357,  358,
      358,  359,  360,  361,  361,  361,  361,  361,  362,  363,
      363,  363,  364,  366,  368,  370,  371,  372,  374,  375,
      376,  377,  379,  381,  383,  385,  386,  386,  387,  389,
      391,  393,  394,  396,  398,  400,  402,  404,  406,  408,
      410,  412,  413,  415,  416,  418,  420,  422,  424,  425,
      426,  426,  427,  429,  431,  432,  433,  435,  437,  439,
      441,  442,  443,  445,  446,  447,  448,  450,  452,  454,
      456,  457,  458,  460,  462,  464,  465,  467,  469,  471,
      473,  475,  477,  479,  481,  483,  484,  486,  487,  489,

      491,  493,  495,  496,  497,  498,  500,  502,  503,  504,
      506,  508,  510,  512,  513,  514,  516,  517,  518,  519,
      521,  523,  525,  527,  528,  529,  531,  533,  535,  536,
      538,  540,  542,  544,  546,  548,  550,  552,  554,  555,
      557,  558,  560,  562,  564,  566,  567,  568,  569,  571,
      573,  574,  575,  577,  578,  579,  580,  581,  582,  584,
      585,  585,  586,  587,  588,  588,  589,  590,  591,  591,
      592,  592,  593,  594,  594,  595,  595,  595,  596,  597,
      598,  598,  599,  599,  599,  600,  600,  601,  602,  603,
      604,  605,  606,  607,  608,  609,  610,  610,  610,  611,

      612,  613,  614,  615,  616,  617,  618,  619,  619,  619,
      619,  619,  619,  619,  620,  621,  622,  623,  624,  624,
      624,  624,  625,  625,  625,  627,  629,  629,  630,  631,
      633,  635,  637,  637,  638,  639,  640,  641,  642,  644,
      646,  648,  650,  650,  651,  653,  655,  657,  659,  660,
      661,  663,  665,  667,  668,  669,  670,  671,  672,  674,
      676,  678,  680,  681,  683,  685,  687,  689,  690,  691,
      693,  695,  697,  698,  699,  700,  701,  702,  704,  706,
      708,  710,  711,  713,  715,  716,  717,  718,  719,  721,
      721,  721,  722,  722,  722,  723,  723,  724,  725,  726,

      726,  726,  726,  726,  727,  727,  727,  728,  728,  729,
      729,  729,  729,  729,  730,  730,  730,  730,  731,  733,
      733,  734,  736,  737,  739,  741,  741,  742,  743,  745,
      746,  748,  749,  751,  753,  754,  755,  757,  758,  760,
      761,  763,  765,  766,  768,  770,  771,  772,  773,  773,
      774,  775,  775,  775,  776,  776,  777,  777,  777,  777,
      777,  778,  778,  778,  778,  778,  778,  779,  779,  780,
      782,  782,  783,  784,  785,  787,  788,  789,  790,  792,
      793,  795,  797,  798,  798,  799,  800,  800,  800,  801,
      802,  803,  803,  803,  803,  803,  803,  804,  804,  805,

      805,  806,  807,  808,  809,  810,  811,  812,  812,  813,
      814,  815,  816,  816,  816,  817,  819,  819,  820,  820,
      821,  823,  824,  825,  827,  828,  829,  830,  830,  830,
      830,  831,  831,  832,  833,  834,  835,  836,  836,  837,
      837,  838,  838,  839,  840,  841,  842,  843,  843,  844,
      846,  847,  849,  851,  853,  855,  857,  857,  857,  857,
      857,  857,  857,  858,  858
    } ;

static yyconst int yy_ec[256] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    4,    5,    6,    1,    7,    8,    1,    1,    9,
       10,   11,   12,   13,   14,   15,   16,   17,   18,   19,
       20,   21,   22,   23,   22,   24,   22,   25,   26,   27,
       28,   29,    1,   30,   31,   31,   31,   32,   31,   33,
        7,    7,    7,    7,    7,    7,    7,    7,    7,    7,
        7,    7,    7,    7,    7,    7,    7,   34,    7,    7,
       35,    1,   36,    1,    7,    1,   37,   38,   39,   40,

       41,   42,   43,   44,   45,    7,   46,   47,   48,   49,
       50,   51,   52,   53,   54,   55,   56,   57,   58,   59,
       60,   61,   62,    1,   63,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,

        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1
    } ;

static yyconst int yy_meta[64] =
    {   0,
        1,    1,    2,    1,    1,    3,    4,    1,    1,    1,
        5,    1,    1,    1,    1,    1,    6,    6,    6,    6,
        6,    6,    6,    6,    1,    1,    1,    1,    1,    1,
        6,    6,    6,    4,    1,    1,    6,    6,    6,    6,
        6,    6,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    1,    1
    } ;

static yyconst short int yy_base[805] =
    {   0,
        0,    0,   58,  112,  169,  226,  280,    0, 1055, 1056,
     1056,    0, 1056, 1056, 1056,    0,   26, 1056, 1056, 1056,
     1056,   65,  323,   55,  370,  104, 1056, 1056, 1056, 1056,
     1056, 1056, 1056, 1056,   54,   37,   83, 1009,  994,   27,
       98,   27,  999,   37,  137,   61, 1001, 1000, 1056, 1056,
        0, 1056,  130,   63,  107, 1004,  989,   61,  146,   88,
      994,  134,  194,   89,  996,  995,    0, 1056, 1028,  165,
       94,  195,  998,  983,   94,  206,   95,  988,  158,  247,
      105,  990,  989, 1022,    0,    0,   25,  984,  156,  991,
      287, 1056,  995,  994,  993,  208,  326,  203,  991,  219,

      377,  246,  132,  982,  297,  118,  157,  977,  217,  275,
      416,  163,  393,  386,  984,  978, 1056, 1056, 1056,    0,
      426,  444,    0,    0,  456,  973,  986,  985,  974,  970,
      184,  975,  971,  966,  964,  961,  182,  480,  998,  175,
      968,  966,  957,  966,  969,  956,    0,  959,  242,  957,
      968,  178,   26,  958,  967,  952,  543,  966,  944,  965,
      946,  947,    0,  945,  958,  957,  946,  942,  223,  947,
      943,  938,  936,  933,  253,  309,  970,  202,  940,  938,
      929,  938,  941,  928,    0,  931,  375,  929,  940,  267,
      242,  930,  939,  924,  342,  938,  916,  937,  918,  919,

        0, 1056,  917,  930,  929,  918,  914,  362,  919,  915,
      910,  908,  905,  312,  950,  941,  273,  911,  909,  900,
      909,  912,  899,    0,  902,  380,  900,  911,  354,  306,
      901,  910,  895,  936,  908,  886,  907,  888,  889,  891,
      903,  894,  883,  892,  896, 1056, 1056, 1056,  895,  309,
      315,  883,  910,  913,  910, 1056,  875,  875,  879,  890,
      887,  870,  868,  359,  900,  903,  900,  873,  858,  372,
      862,  867,  860, 1056, 1056,  876,  858,  874, 1056,  856,
      852,  861,  860,  852,  859, 1056,  853,  864,  861,  858,
      857,  856,  855,  876,  879,  876, 1056,  841,  856,  857,

      852,  839,  838,  837,  830,  865,  868,  865, 1056,  840,
     1056, 1056, 1056,  831,  829,  842,  828,    0,  480,    0,
        0,  500,    0,  841,    0,  831,  606,    0,  827,  830,
      821,    0,    0,    0,    0,  820,  817,  816,    0,  853,
        0,  833,    0,    0,  851,    0,    0,    0,    0,    0,
        0,  816,    0,  817,  816,    0,    0,    0,  811,  810,
      807,  806,    0,    0,  811,  820,    0,    0,  821,    0,
      811,  435,    0,  807,  810,  801,    0,    0,    0,    0,
      800,  797,    0,  834,    0,  814,    0,    0,  832,    0,
        0,    0,    0,    0,    0,  797,    0,  798,  797,    0,

        0,    0,  792,  791,  788,    0,    0,  793,  802,    0,
        0,  803,    0,  793,  829,    0,  788,  791,  782,    0,
        0,    0,    0,  781,  778,    0,  815,    0,  795,    0,
        0,  813,    0,    0,    0,    0,    0,    0,  778,    0,
      779,  778,    0,    0,    0,  773,  772,  769,    0,    0,
      774,  783,    0,  784,  777,  781,  783,  779,    0, 1056,
      775, 1056, 1056, 1056,  764, 1056, 1056, 1056,  775, 1056,
      761, 1056, 1056,  761, 1056,  769,  771, 1056, 1056, 1056,
      770, 1056,  763,  770, 1056,  770, 1056, 1056, 1056,  770,
     1056,  757, 1056, 1056, 1056, 1056,  768,  764, 1056, 1056,

     1056, 1056, 1056, 1056, 1056, 1056, 1056,  748,  749,  758,
      744,  757,  755, 1056, 1056, 1056, 1056,  747,  742,  750,
      753, 1056,    0,    0,    0,    0,  739,  738,  736,    0,
        0,    0,  740,  739,  767,  750,  765,  730,    0,    0,
        0,    0,  734,  733,    0,    0,    0,    0,  728,  726,
        0,    0,    0,  730,  758,  741,  756,  721,    0,    0,
        0,    0,  725,    0,    0,    0,    0,  720,  718,    0,
        0,    0,  722,  750,  733,  748,  713,    0,    0,    0,
        0,  717,    0,    0,  720,  725,  719,  718,    0,  709,
      696, 1056,  685,  674, 1056,  663, 1056, 1056, 1056,  673,

      657,  646,  650, 1056,  648,  648, 1056,  644, 1056,  626,
      617,  620,  626, 1056,    0,    0,  603,  602,    0,  614,
      613,    0,  606,    0,    0,  611,  610,  596,    0,  608,
        0,  601,    0,    0,  606,  592,    0,  604,    0,  597,
        0,    0,  602,    0,    0,  608,  607, 1056,  587,  610,
     1056,  595,  596, 1056,  595, 1056,  589,  598,  582,  575,
     1056,  579,  581,    0,    0,  578,  577,  588,  587,    0,
      586,  576,  560,  567,    0,  566,  553,  564,    0,  563,
        0,    0, 1056,  508, 1056, 1056,  558,  548, 1056, 1056,
     1056,  547,  554,    0,    0,  555,  554,  537,  536,  535,

      534,  549,  522,  521,  536,  519,  512,  563, 1056, 1056,
     1056, 1056,    0,    0, 1056,    0,  521,  520,  519,  518,
        0,  517,  516,    0,  515,  505, 1056,    0,    0,  499,
      494,  493,  492,  491,  490,  489,  488,    0, 1056,  493,
      492,  473,  472,  471,  470,  446,  442,    0, 1056,    0,
     1056,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0, 1056, 1056,  669,  675,  681,  684,  690,  696,
      702,  464,  452,  708,  714,  720,  726,  732,  738,  450,
      449,  744,  750,  756,  448,  446,  445,  431,  420,  419,
      418,  412,  390,  363,  352,  319,  294,  271,  230,  184,

      170,  135,  104,   87
    } ;

static yyconst short int yy_def[805] =
    {   0,
      764,    1,  765,  765,  766,  766,    1,    7,  764,  764,
      764,  767,  764,  764,  764,  768,  768,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  768,  768,  768,  768,  768,  768,
      768,  768,  768,  768,  768,  768,  768,  768,  764,  764,
      769,  764,  769,  769,  769,  769,  769,  769,  769,  769,
      769,  769,  769,  769,  769,  769,  770,  764,  764,  770,
      770,  770,  770,  770,  770,  770,  770,  770,  770,  770,
      770,  770,  770,  764,  767,  768,  768,  768,  768,  768,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,

      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  771,
      764,  764,  772,  773,  764,  768,  768,  768,  768,  768,
      768,  768,  768,  768,  768,  768,  768,  774,  768,  768,
      768,  768,  768,  768,  768,  768,  768,  768,  768,  768,
      768,  768,  768,  768,  768,  768,  775,  768,  768,  768,
      768,  768,  769,  769,  769,  769,  769,  769,  769,  769,
      769,  769,  769,  769,  769,  776,  769,  769,  769,  769,
      769,  769,  769,  769,  769,  769,  769,  769,  769,  769,
      769,  769,  769,  769,  777,  769,  769,  769,  769,  769,

      770,  764,  770,  770,  770,  770,  770,  770,  770,  770,
      770,  770,  770,  770,  778,  770,  770,  770,  770,  770,
      770,  770,  770,  770,  770,  770,  770,  770,  770,  770,
      770,  770,  770,  779,  770,  770,  770,  770,  770,  768,
      768,  768,  768,  768,  768,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,

      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  771,  764,  780,
      781,  764,  768,  768,  768,  768,  782,  768,  768,  768,
      768,  768,  768,  768,  768,  768,  764,  768,  768,  768,
      768,  768,  768,  768,  768,  768,  768,  768,  768,  768,
      768,  768,  768,  768,  768,  768,  768,  768,  768,  768,
      764,  768,  768,  768,  768,  768,  768,  769,  769,  769,
      769,  783,  769,  769,  769,  769,  769,  769,  769,  769,
      769,  769,  769,  769,  769,  769,  769,  769,  769,  769,
      769,  769,  769,  769,  769,  769,  769,  769,  769,  769,

      769,  769,  769,  769,  769,  769,  769,  769,  769,  769,
      770,  770,  770,  770,  784,  770,  770,  770,  770,  770,
      770,  770,  770,  770,  770,  770,  770,  770,  770,  770,
      770,  770,  770,  770,  770,  770,  770,  770,  770,  770,
      770,  770,  770,  770,  770,  770,  770,  770,  770,  770,
      770,  770,  770,  768,  768,  768,  768,  768,  768,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,

      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  785,  786,  768,  768,  764,  768,  768,  768,
      768,  768,  764,  768,  768,  768,  768,  768,  768,  768,
      768,  768,  764,  768,  768,  768,  769,  769,  769,  769,
      769,  769,  769,  769,  769,  769,  769,  769,  769,  769,
      769,  769,  769,  769,  769,  770,  770,  770,  770,  770,
      770,  770,  770,  770,  770,  770,  770,  770,  770,  770,
      770,  770,  770,  770,  768,  768,  768,  768,  768,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,

      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  787,  788,  764,  768,  768,  764,
      768,  768,  768,  768,  768,  764,  768,  769,  769,  769,
      769,  769,  769,  769,  769,  770,  770,  770,  770,  770,
      770,  770,  770,  768,  768,  768,  768,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  789,  790,  764,  768,  764,  768,  768,
      764,  768,  769,  769,  769,  769,  770,  770,  770,  770,
      768,  768,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  791,  792,  764,  768,  764,  768,  764,

      768,  769,  769,  769,  770,  770,  770,  764,  764,  764,
      764,  764,  793,  794,  764,  768,  764,  768,  764,  768,
      769,  769,  769,  770,  770,  770,  764,  795,  796,  764,
      768,  764,  768,  769,  769,  770,  770,  797,  764,  764,
      768,  764,  768,  769,  769,  770,  770,  798,  764,  768,
      764,  768,  769,  769,  770,  770,  799,  800,  801,  802,
      803,  804,  764,    0,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,

      764,  764,  764,  764
    } ;

static yyconst short int yy_nxt[1120] =
    {   0,
       10,   11,   12,   13,   14,   15,   16,   17,   18,   19,
       10,   20,   21,   22,   23,   24,   25,   26,   26,   26,
       26,   26,   26,   26,   27,   28,   29,   30,   31,   32,
       16,   16,   16,   16,   33,   34,   35,   36,   37,   38,
       39,   16,   16,   16,   16,   16,   40,   41,   42,   43,
       16,   16,   44,   45,   46,   16,   47,   16,   48,   16,
       16,   49,   50,   52,   87,  119,  138,  145,   88,  139,
      120,  240,  356,  130,   89,  148,  146,  149,  357,  241,
       90,   91,   91,   91,   91,   91,   91,   91,   91,  131,
      150,  126,  763,  127,   53,   54,   55,   56,   57,  168,

      176,  159,  128,  177,   58,   59,   60,   61,  129,  762,
       62,   63,   64,  160,   65,  169,   66,   52,  121,  132,
      122,  122,  122,  122,  122,  122,  122,  122,  183,  197,
      207,  133,  134,  215,  140,  222,  216,  184,  141,  135,
      761,  198,  142,  170,  223,  236,  208,  143,   53,   54,
       55,   56,   57,  144,  281,  171,  172,  237,   58,   59,
       60,   61,  282,  173,   62,   63,   64,  164,   65,  165,
       66,   68,  186,  151,  187,  760,  274,  152,  166,   69,
      153,  154,  178,  155,  167,  275,  179,  188,  156,  759,
      180,  157,  158,  283,  243,  181,  225,  284,  226,  304,

      335,  182,  203,  305,  204,   70,   71,   72,   73,   74,
      244,  227,  285,  205,  340,   75,   76,   77,   78,  206,
      328,   79,   80,   81,  354,   82,  336,   83,   68,  329,
      189,  209,  355,  341,  190,  758,   69,  191,  192,  258,
      193,  384,  217,  210,  211,  194,  218,  249,  195,  196,
      219,  212,  259,  287,  250,  220,  251,  260,  252,  373,
      385,  221,   70,   71,   72,   73,   74,  262,  374,  288,
      263,  380,   75,   76,   77,   78,  757,  264,   79,   80,
       81,  349,   82,  228,   83,   10,  271,  229,  400,  350,
      230,  231,  272,  232,  401,   84,  351,  381,  233,  748,

      273,  234,  235,   91,   91,   91,   91,   91,   91,   91,
       91,  163,  427,  398,  337,  289,   16,   16,   16,   16,
       16,  399,  290,  291,  739,  292,   16,   16,   16,   16,
      423,  428,   16,   16,   16,  293,   16,  277,   16,   92,
       93,   94,   95,  253,  163,  254,  278,  361,  255,  256,
      279,  280,  443,  461,  463,  462,  424,  738,  444,   96,
       97,   98,   99,  100,  101,  102,  103,  104,  729,  105,
      106,  107,  108,  109,  464,  110,  111,  112,  113,  114,
      115,  116,  117,  118,  121,  257,  122,  122,  122,  122,
      122,  122,  122,  122,  265,  728,  266,  476,  416,  267,

      441,  123,  124,  125,  311,  312,  313,  417,  442,  123,
      306,  124,  307,  477,  393,  308,  309,  714,  483,  436,
      484,  268,  394,  713,  695,  694,  314,  437,  125,  395,
      315,  269,  270,  294,  438,  295,  665,  163,  296,  297,
      527,  310,  319,  319,  319,  319,  319,  319,  319,  319,
      664,  616,  298,  615,  524,  523,  299,  321,  121,  300,
      122,  122,  122,  122,  122,  122,  122,  122,  301,  320,
      302,  303,  322,  322,  322,  322,  322,  322,  322,  322,
      337,  337,  756,  337,  337,  337,  755,  337,  337,  337,
      337,  337,  337,  337,  337,  337,  319,  319,  319,  319,

      319,  319,  319,  319,  337,  337,  337,  337,  337,  337,
      754,  753,  752,  751,  337,  337,  322,  322,  322,  322,
      322,  322,  322,  322,  708,  708,  708,  708,  708,  708,
      708,  708,  750,  749,  747,  746,  745,  744,  743,  742,
      741,  337,  337,  361,  361,  740,  361,  361,  361,  737,
      361,  361,  361,  361,  361,  361,  361,  361,  361,  736,
      735,  734,  733,  732,  731,  730,  726,  361,  361,  361,
      361,  361,  361,  725,  724,  723,  722,  361,  361,  708,
      708,  708,  708,  708,  708,  708,  708,  721,  720,  719,
      718,  717,  716,  715,  712,  711,  710,  709,  727,  707,

      706,  705,  704,  703,  361,  361,  527,  527,  702,  527,
      527,  527,  701,  527,  527,  527,  527,  527,  527,  527,
      527,  527,  700,  699,  698,  697,  696,  693,  692,  691,
      527,  527,  527,  527,  527,  527,  690,  689,  688,  687,
      527,  527,  686,  685,  684,  683,  682,  681,  680,  679,
      678,  677,  676,  675,  674,  673,  672,  671,  670,  669,
      668,  667,  666,  663,  662,  661,  660,  527,  527,   51,
       51,   51,   51,   51,   51,   67,   67,   67,   67,   67,
       67,   85,  659,   85,   85,   85,   85,   86,  658,   86,
      163,  163,  657,  163,  163,  163,  201,  656,  201,  201,

      655,  201,  318,  654,  318,  318,  318,  318,  338,  653,
      338,  338,  338,  338,  362,  652,  362,  362,  362,  362,
      382,  382,  382,  382,  382,  382,  405,  405,  405,  405,
      405,  405,  425,  651,  425,  425,  425,  425,  448,  650,
      448,  448,  448,  448,  528,  649,  528,  528,  528,  528,
      549,  549,  549,  549,  549,  549,  568,  648,  568,  568,
      568,  568,  647,  646,  645,  644,  643,  642,  641,  640,
      639,  638,  637,  636,  635,  634,  633,  632,  631,  630,
      629,  628,  627,  626,  625,  624,  623,  622,  621,  620,
      619,  618,  617,  614,  613,  612,  611,  610,  609,  608,

      607,  606,  605,  604,  603,  602,  601,  600,  599,  598,
      597,  596,  595,  594,  593,  592,  591,  590,  589,  588,
      587,  586,  585,  584,  583,  582,  581,  580,  579,  578,
      577,  576,  575,  574,  573,  572,  571,  570,  569,  527,
      567,  566,  565,  564,  563,  562,  561,  560,  559,  558,
      557,  556,  555,  554,  553,  552,  551,  550,  548,  547,
      546,  545,  544,  543,  542,  541,  540,  539,  538,  537,
      536,  535,  534,  533,  532,  531,  530,  529,  526,  525,
      522,  521,  520,  519,  518,  517,  516,  515,  514,  513,
      512,  511,  510,  509,  508,  507,  506,  505,  504,  503,

      502,  501,  500,  499,  498,  497,  496,  495,  494,  493,
      492,  491,  490,  489,  488,  487,  486,  485,  482,  481,
      480,  479,  478,  475,  474,  473,  472,  471,  470,  469,
      468,  467,  466,  465,  460,  459,  458,  457,  456,  455,
      454,  453,  452,  451,  450,  449,  361,  447,  446,  445,
      440,  439,  435,  434,  433,  432,  431,  430,  429,  426,
      337,  422,  421,  420,  419,  418,  415,  414,  413,  412,
      411,  410,  409,  408,  407,  406,  404,  403,  402,  397,
      396,  392,  391,  390,  389,  388,  387,  386,  383,  379,
      378,  377,  376,  375,  372,  371,  370,  369,  368,  367,

      366,  365,  364,  363,  360,  359,  358,  353,  352,  348,
      347,  346,  345,  344,  343,  342,  339,  334,  333,  332,
      331,  330,  327,  326,  325,  324,  323,  317,  316,  286,
      276,  261,  248,  247,  246,  245,  242,  120,  239,  238,
      224,  214,  213,  202,  200,  199,  185,  175,  174,  162,
      161,  147,  137,  136,  764,    9,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,

      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764
    } ;

static yyconst short int yy_chk[1120] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    3,   17,   24,   40,   42,   17,   40,
       24,   87,  153,   36,   17,   44,   42,   44,  153,   87,
       17,   22,   22,   22,   22,   22,   22,   22,   22,   36,
       44,   35,  804,   35,    3,    3,    3,    3,    3,   54,

       58,   46,   35,   58,    3,    3,    3,    3,   35,  803,
        3,    3,    3,   46,    3,   54,    3,    4,   26,   37,
       26,   26,   26,   26,   26,   26,   26,   26,   60,   64,
       71,   37,   37,   75,   41,   77,   75,   60,   41,   37,
      802,   64,   41,   55,   77,   81,   71,   41,    4,    4,
        4,    4,    4,   41,  106,   55,   55,   81,    4,    4,
        4,    4,  106,   55,    4,    4,    4,   53,    4,   53,
        4,    5,   62,   45,   62,  801,  103,   45,   53,    5,
       45,   45,   59,   45,   53,  103,   59,   62,   45,  800,
       59,   45,   45,  107,   89,   59,   79,  107,   79,  112,

      137,   59,   70,  112,   70,    5,    5,    5,    5,    5,
       89,   79,  107,   70,  140,    5,    5,    5,    5,   70,
      131,    5,    5,    5,  152,    5,  137,    5,    6,  131,
       63,   72,  152,  140,   63,  799,    6,   63,   63,   98,
       63,  178,   76,   72,   72,   63,   76,   96,   63,   63,
       76,   72,   98,  109,   96,   76,   96,   98,   96,  169,
      178,   76,    6,    6,    6,    6,    6,  100,  169,  109,
      100,  175,    6,    6,    6,    6,  798,  100,    6,    6,
        6,  149,    6,   80,    6,    7,  102,   80,  191,  149,
       80,   80,  102,   80,  191,    7,  149,  175,   80,  797,

      102,   80,   80,   91,   91,   91,   91,   91,   91,   91,
       91,  176,  217,  190,  176,  110,    7,    7,    7,    7,
        7,  190,  110,  110,  796,  110,    7,    7,    7,    7,
      214,  217,    7,    7,    7,  110,    7,  105,    7,   23,
       23,   23,   23,   97,  195,   97,  105,  195,   97,   97,
      105,  105,  230,  250,  251,  250,  214,  795,  230,   23,
       23,   23,   23,   23,   23,   23,   23,   23,  794,   23,
       23,   23,   23,   23,  251,   23,   23,   23,   23,   23,
       23,   23,   23,   23,   25,   97,   25,   25,   25,   25,
       25,   25,   25,   25,  101,  793,  101,  264,  208,  101,

      229,   25,   25,   25,  114,  114,  114,  208,  229,   25,
      113,   25,  113,  264,  187,  113,  113,  792,  270,  226,
      270,  101,  187,  791,  790,  789,  114,  226,   25,  187,
      114,  101,  101,  111,  226,  111,  788,  372,  111,  111,
      372,  113,  121,  121,  121,  121,  121,  121,  121,  121,
      787,  786,  111,  785,  781,  780,  111,  773,  122,  111,
      122,  122,  122,  122,  122,  122,  122,  122,  111,  772,
      111,  111,  125,  125,  125,  125,  125,  125,  125,  125,
      138,  138,  747,  138,  138,  138,  746,  138,  138,  138,
      138,  138,  138,  138,  138,  138,  319,  319,  319,  319,

      319,  319,  319,  319,  138,  138,  138,  138,  138,  138,
      745,  744,  743,  742,  138,  138,  322,  322,  322,  322,
      322,  322,  322,  322,  684,  684,  684,  684,  684,  684,
      684,  684,  741,  740,  737,  736,  735,  734,  733,  732,
      731,  138,  138,  157,  157,  730,  157,  157,  157,  726,
      157,  157,  157,  157,  157,  157,  157,  157,  157,  725,
      723,  722,  720,  719,  718,  717,  707,  157,  157,  157,
      157,  157,  157,  706,  705,  704,  703,  157,  157,  708,
      708,  708,  708,  708,  708,  708,  708,  702,  701,  700,
      699,  698,  697,  696,  693,  692,  688,  687,  708,  680,

      678,  677,  676,  674,  157,  157,  327,  327,  673,  327,
      327,  327,  672,  327,  327,  327,  327,  327,  327,  327,
      327,  327,  671,  669,  668,  667,  666,  663,  662,  660,
      327,  327,  327,  327,  327,  327,  659,  658,  657,  655,
      327,  327,  653,  652,  650,  649,  647,  646,  643,  640,
      638,  636,  635,  632,  630,  628,  627,  626,  623,  621,
      620,  618,  617,  613,  612,  611,  610,  327,  327,  765,
      765,  765,  765,  765,  765,  766,  766,  766,  766,  766,
      766,  767,  608,  767,  767,  767,  767,  768,  606,  768,
      769,  769,  605,  769,  769,  769,  770,  603,  770,  770,

      602,  770,  771,  601,  771,  771,  771,  771,  774,  600,
      774,  774,  774,  774,  775,  596,  775,  775,  775,  775,
      776,  776,  776,  776,  776,  776,  777,  777,  777,  777,
      777,  777,  778,  594,  778,  778,  778,  778,  779,  593,
      779,  779,  779,  779,  782,  591,  782,  782,  782,  782,
      783,  783,  783,  783,  783,  783,  784,  590,  784,  784,
      784,  784,  588,  587,  586,  585,  582,  577,  576,  575,
      574,  573,  569,  568,  563,  558,  557,  556,  555,  554,
      550,  549,  544,  543,  538,  537,  536,  535,  534,  533,
      529,  528,  527,  521,  520,  519,  518,  513,  512,  511,

      510,  509,  508,  498,  497,  492,  490,  486,  484,  483,
      481,  477,  476,  474,  471,  469,  465,  461,  458,  457,
      456,  455,  454,  452,  451,  448,  447,  446,  442,  441,
      439,  432,  429,  427,  425,  424,  419,  418,  417,  415,
      414,  412,  409,  408,  405,  404,  403,  399,  398,  396,
      389,  386,  384,  382,  381,  376,  375,  374,  371,  369,
      366,  365,  362,  361,  360,  359,  355,  354,  352,  345,
      342,  340,  338,  337,  336,  331,  330,  329,  326,  324,
      317,  316,  315,  314,  310,  308,  307,  306,  305,  304,
      303,  302,  301,  300,  299,  298,  296,  295,  294,  293,

      292,  291,  290,  289,  288,  287,  285,  284,  283,  282,
      281,  280,  278,  277,  276,  273,  272,  271,  269,  268,
      267,  266,  265,  263,  262,  261,  260,  259,  258,  257,
      255,  254,  253,  252,  249,  245,  244,  243,  242,  241,
      240,  239,  238,  237,  236,  235,  234,  233,  232,  231,
      228,  227,  225,  223,  222,  221,  220,  219,  218,  216,
      215,  213,  212,  211,  210,  209,  207,  206,  205,  204,
      203,  200,  199,  198,  197,  196,  194,  193,  192,  189,
      188,  186,  184,  183,  182,  181,  180,  179,  177,  174,
      173,  172,  171,  170,  168,  167,  166,  165,  164,  162,

      161,  160,  159,  158,  156,  155,  154,  151,  150,  148,
      146,  145,  144,  143,  142,  141,  139,  136,  135,  134,
      133,  132,  130,  129,  128,  127,  126,  116,  115,  108,
      104,   99,   95,   94,   93,   90,   88,   84,   83,   82,
       78,   74,   73,   69,   66,   65,   61,   57,   56,   48,
       47,   43,   39,   38,    9,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,

      764,  764,  764,  764,  764,  764,  764,  764,  764,  764,
      764,  764,  764,  764,  764,  764,  764,  764,  764
    } ;

static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
static char *yy_full_match;
static int yy_lp;
#define REJECT \
{ \
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
yy_cp = yy_full_match; /* restore poss. backed-over text */ \
++yy_lp; \
goto find_rule; \
}
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "ptx.l"
#define INITIAL 0
/* 
 * Copyright (c) 2009 by Tor M. Aamodt and the University of British Columbia
 * Vancouver, BC  V6T 1Z4
 * All Rights Reserved.
 *
 * THIS IS A LEGAL DOCUMENT BY DOWNLOADING GPGPU-SIM, YOU ARE AGREEING TO THESE
 * TERMS AND CONDITIONS.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNERS OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 * 
 * NOTE: The files libcuda/cuda_runtime_api.c and src/cuda-sim/cuda-math.h
 * are derived from the CUDA Toolset available from http://www.nvidia.com/cuda
 * (property of NVIDIA).  The files benchmarks/BlackScholes/ and 
 * benchmarks/template/ are derived from the CUDA SDK available from 
 * http://www.nvidia.com/cuda (also property of NVIDIA).  The files from 
 * src/intersim/ are derived from Booksim (a simulator provided with the 
 * textbook "Principles and Practices of Interconnection Networks" available 
 * from http://cva.stanford.edu/books/ppin/). As such, those files are bound by 
 * the corresponding legal terms and conditions set forth separately (original 
 * copyright notices are left in files from these sources and where we have 
 * modified a file our copyright notice appears before the original copyright 
 * notice).  
 * 
 * Using this version of GPGPU-Sim requires a complete installation of CUDA 
 * which is distributed seperately by NVIDIA under separate terms and 
 * conditions.  To use this version of GPGPU-Sim with OpenCL requires a
 * recent version of NVIDIA's drivers which support OpenCL.
 * 
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 * 
 * 1. Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * 
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 * 
 * 3. Neither the name of the University of British Columbia nor the names of
 * its contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * 
 * 4. This version of GPGPU-SIM is distributed freely for non-commercial use only.  
 *  
 * 5. No nonprofit user may place any restrictions on the use of this software,
 * including as modified by the user, by any other authorized user.
 * 
 * 6. GPGPU-SIM was developed primarily by Tor M. Aamodt, Wilson W. L. Fung, 
 * Ali Bakhoda, George L. Yuan, at the University of British Columbia, 
 * Vancouver, BC V6T 1Z4
 */
#line 67 "ptx.l"
#include "opcodes.h"
#include "ptx.tab.h"
#include <string.h>

char linebuf[1024];
unsigned col = 0;
#define TC col+=strlen(ptx_text); 
int ptx_error( const char *s );
#define IN_STRING 1

#define IN_COMMENT 2

#define NOT_OPCODE 3

#line 1074 "lex.ptx_.c"

/* Macros after this point can all be overridden by user definitions in
 * section 1.
 */

#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap YY_PROTO(( void ));
#else
extern int yywrap YY_PROTO(( void ));
#endif
#endif

#ifndef YY_NO_UNPUT
static void yyunput YY_PROTO(( int c, char *buf_ptr ));
#endif

#ifndef yytext_ptr
static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
#endif

#ifdef YY_NEED_STRLEN
static int yy_flex_strlen YY_PROTO(( yyconst char * ));
#endif

#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput YY_PROTO(( void ));
#else
static int input YY_PROTO(( void ));
#endif
#endif

#if YY_STACK_USED
static int yy_start_stack_ptr = 0;
static int yy_start_stack_depth = 0;
static int *yy_start_stack = 0;
#ifndef YY_NO_PUSH_STATE
static void yy_push_state YY_PROTO(( int new_state ));
#endif
#ifndef YY_NO_POP_STATE
static void yy_pop_state YY_PROTO(( void ));
#endif
#ifndef YY_NO_TOP_STATE
static int yy_top_state YY_PROTO(( void ));
#endif

#else
#define YY_NO_PUSH_STATE 1
#define YY_NO_POP_STATE 1
#define YY_NO_TOP_STATE 1
#endif

#ifdef YY_MALLOC_DECL
YY_MALLOC_DECL
#else
#if __STDC__
#ifndef __cplusplus
#include <stdlib.h>
#endif
#else
/* Just try to get by without declaring the routines.  This will fail
 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
 * or sizeof(void*) != sizeof(int).
 */
#endif
#endif

/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
#endif

/* Copy whatever the last rule matched to the standard output. */

#ifndef ECHO
/* This used to be an fputs(), but since the string might contain NUL's,
 * we now use fwrite().
 */
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
#endif

/* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
 * is returned in "result".
 */
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
	if ( yy_current_buffer->yy_is_interactive ) \
		{ \
		int c = '*', n; \
		for ( n = 0; n < max_size && \
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
			buf[n] = (char) c; \
		if ( c == '\n' ) \
			buf[n++] = (char) c; \
		if ( c == EOF && ferror( yyin ) ) \
			YY_FATAL_ERROR( "input in flex scanner failed" ); \
		result = n; \
		} \
	else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
		  && ferror( yyin ) ) \
		YY_FATAL_ERROR( "input in flex scanner failed" );
#endif

/* No semi-colon after return; correct usage is to write "yyterminate();" -
 * we don't want an extra ';' after the "return" because that will cause
 * some compilers to complain about unreachable statements.
 */
#ifndef yyterminate
#define yyterminate() return YY_NULL
#endif

/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif

/* Report a fatal error. */
#ifndef YY_FATAL_ERROR
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
#endif

/* Default declaration of generated scanner - a define so the user can
 * easily add parameters.
 */
#ifndef YY_DECL
#define YY_DECL int yylex YY_PROTO(( void ))
#endif

/* Code executed at the beginning of each rule, after yytext and yyleng
 * have been set up.
 */
#ifndef YY_USER_ACTION
#define YY_USER_ACTION
#endif

/* Code executed at the end of each rule. */
#ifndef YY_BREAK
#define YY_BREAK break;
#endif

#define YY_RULE_SETUP \
	YY_USER_ACTION

YY_DECL
	{
	register yy_state_type yy_current_state;
	register char *yy_cp = NULL, *yy_bp = NULL;
	register int yy_act;

#line 80 "ptx.l"


#line 1228 "lex.ptx_.c"

	if ( yy_init )
		{
		yy_init = 0;

#ifdef YY_USER_INIT
		YY_USER_INIT;
#endif

		if ( ! yy_start )
			yy_start = 1;	/* first start state */

		if ( ! yyin )
			yyin = stdin;

		if ( ! yyout )
			yyout = stdout;

		if ( ! yy_current_buffer )
			yy_current_buffer =
				yy_create_buffer( yyin, YY_BUF_SIZE );

		yy_load_buffer_state();
		}

	while ( 1 )		/* loops until end-of-file is reached */
		{
		yy_cp = yy_c_buf_p;

		/* Support of yytext. */
		*yy_cp = yy_hold_char;

		/* yy_bp points to the position in yy_ch_buf of the start of
		 * the current run.
		 */
		yy_bp = yy_cp;

		yy_current_state = yy_start;
		yy_state_ptr = yy_state_buf;
		*yy_state_ptr++ = yy_current_state;
yy_match:
		do
			{
			register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
			while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
				{
				yy_current_state = (int) yy_def[yy_current_state];
				if ( yy_current_state >= 765 )
					yy_c = yy_meta[(unsigned int) yy_c];
				}
			yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
			*yy_state_ptr++ = yy_current_state;
			++yy_cp;
			}
		while ( yy_base[yy_current_state] != 1056 );

yy_find_action:
		yy_current_state = *--yy_state_ptr;
		yy_lp = yy_accept[yy_current_state];
find_rule: /* we branch to this label when backing up */
		for ( ; ; ) /* until we find what rule we matched */
			{
			if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
				{
				yy_act = yy_acclist[yy_lp];
					{
					yy_full_match = yy_cp;
					break;
					}
				}
			--yy_cp;
			yy_current_state = *--yy_state_ptr;
			yy_lp = yy_accept[yy_current_state];
			}

		YY_DO_BEFORE_ACTION;

		if ( yy_act != YY_END_OF_BUFFER )
			{
			int yyl;
			for ( yyl = 0; yyl < yyleng; ++yyl )
				if ( yytext[yyl] == '\n' )
					++yylineno;
			}

do_action:	/* This label is used only to access EOF actions. */


		switch ( yy_act )
	{ /* beginning of action switch */
case 1:
YY_RULE_SETUP
#line 82 "ptx.l"
TC; ptx_lval.int_value = ABS_OP; return OPCODE;
	YY_BREAK
case 2:
YY_RULE_SETUP
#line 83 "ptx.l"
TC; ptx_lval.int_value = ADD_OP; return OPCODE;
	YY_BREAK
case 3:
YY_RULE_SETUP
#line 84 "ptx.l"
TC; ptx_lval.int_value = AND_OP; return OPCODE;
	YY_BREAK
case 4:
YY_RULE_SETUP
#line 85 "ptx.l"
TC; ptx_lval.int_value = ATOM_OP; return OPCODE;
	YY_BREAK
case 5:
YY_RULE_SETUP
#line 86 "ptx.l"
TC; ptx_lval.int_value = BAR_OP; return OPCODE;
	YY_BREAK
case 6:
YY_RULE_SETUP
#line 87 "ptx.l"
TC; ptx_lval.int_value = BRA_OP; return OPCODE;
	YY_BREAK
case 7:
YY_RULE_SETUP
#line 88 "ptx.l"
TC; ptx_lval.int_value = CALL_OP; return OPCODE;
	YY_BREAK
case 8:
YY_RULE_SETUP
#line 89 "ptx.l"
TC; ptx_lval.int_value = CNOT_OP; return OPCODE;
	YY_BREAK
case 9:
YY_RULE_SETUP
#line 90 "ptx.l"
TC; ptx_lval.int_value = COS_OP; return OPCODE;
	YY_BREAK
case 10:
YY_RULE_SETUP
#line 91 "ptx.l"
TC; ptx_lval.int_value = CVT_OP; return OPCODE;
	YY_BREAK
case 11:
YY_RULE_SETUP
#line 92 "ptx.l"
TC; ptx_lval.int_value = DIV_OP; return OPCODE;
	YY_BREAK
case 12:
YY_RULE_SETUP
#line 93 "ptx.l"
TC; ptx_lval.int_value = EX2_OP; return OPCODE;
	YY_BREAK
case 13:
YY_RULE_SETUP
#line 94 "ptx.l"
TC; ptx_lval.int_value = EXIT_OP; return OPCODE;
	YY_BREAK
case 14:
YY_RULE_SETUP
#line 95 "ptx.l"
TC; ptx_lval.int_value = LD_OP; return OPCODE;
	YY_BREAK
case 15:
YY_RULE_SETUP
#line 96 "ptx.l"
TC; ptx_lval.int_value = LD_OP; return OPCODE;
	YY_BREAK
case 16:
YY_RULE_SETUP
#line 97 "ptx.l"
TC; ptx_lval.int_value = LG2_OP; return OPCODE;
	YY_BREAK
case 17:
YY_RULE_SETUP
#line 98 "ptx.l"
TC; ptx_lval.int_value = MAD24_OP; return OPCODE;
	YY_BREAK
case 18:
YY_RULE_SETUP
#line 99 "ptx.l"
TC; ptx_lval.int_value = MAD_OP; return OPCODE;
	YY_BREAK
case 19:
YY_RULE_SETUP
#line 100 "ptx.l"
TC; ptx_lval.int_value = MAX_OP; return OPCODE;
	YY_BREAK
case 20:
YY_RULE_SETUP
#line 101 "ptx.l"
TC; ptx_lval.int_value = MIN_OP; return OPCODE;
	YY_BREAK
case 21:
YY_RULE_SETUP
#line 102 "ptx.l"
TC; ptx_lval.int_value = MOV_OP; return OPCODE;
	YY_BREAK
case 22:
YY_RULE_SETUP
#line 103 "ptx.l"
TC; ptx_lval.int_value = MUL24_OP; return OPCODE;
	YY_BREAK
case 23:
YY_RULE_SETUP
#line 104 "ptx.l"
TC; ptx_lval.int_value = MUL_OP; return OPCODE;
	YY_BREAK
case 24:
YY_RULE_SETUP
#line 105 "ptx.l"
TC; ptx_lval.int_value = NEG_OP; return OPCODE;
	YY_BREAK
case 25:
YY_RULE_SETUP
#line 106 "ptx.l"
TC; ptx_lval.int_value = NOT_OP; return OPCODE;
	YY_BREAK
case 26:
YY_RULE_SETUP
#line 107 "ptx.l"
TC; ptx_lval.int_value = OR_OP; return OPCODE;
	YY_BREAK
case 27:
YY_RULE_SETUP
#line 108 "ptx.l"
TC; ptx_lval.int_value = RCP_OP; return OPCODE;
	YY_BREAK
case 28:
YY_RULE_SETUP
#line 109 "ptx.l"
TC; ptx_lval.int_value = REM_OP; return OPCODE;
	YY_BREAK
case 29:
YY_RULE_SETUP
#line 110 "ptx.l"
TC; ptx_lval.int_value = RET_OP; return OPCODE;
	YY_BREAK
case 30:
YY_RULE_SETUP
#line 111 "ptx.l"
TC; ptx_lval.int_value = RSQRT_OP; return OPCODE;
	YY_BREAK
case 31:
YY_RULE_SETUP
#line 112 "ptx.l"
TC; ptx_lval.int_value = SAD_OP; return OPCODE;
	YY_BREAK
case 32:
YY_RULE_SETUP
#line 113 "ptx.l"
TC; ptx_lval.int_value = SELP_OP; return OPCODE;
	YY_BREAK
case 33:
YY_RULE_SETUP
#line 114 "ptx.l"
TC; ptx_lval.int_value = SETP_OP; return OPCODE;
	YY_BREAK
case 34:
YY_RULE_SETUP
#line 115 "ptx.l"
TC; ptx_lval.int_value = SET_OP; return OPCODE;
	YY_BREAK
case 35:
YY_RULE_SETUP
#line 116 "ptx.l"
TC; ptx_lval.int_value = SHL_OP; return OPCODE;
	YY_BREAK
case 36:
YY_RULE_SETUP
#line 117 "ptx.l"
TC; ptx_lval.int_value = SHR_OP; return OPCODE;
	YY_BREAK
case 37:
YY_RULE_SETUP
#line 118 "ptx.l"
TC; ptx_lval.int_value = SIN_OP; return OPCODE;
	YY_BREAK
case 38:
YY_RULE_SETUP
#line 119 "ptx.l"
TC; ptx_lval.int_value = SLCT_OP; return OPCODE;
	YY_BREAK
case 39:
YY_RULE_SETUP
#line 120 "ptx.l"
TC; ptx_lval.int_value = SQRT_OP; return OPCODE;
	YY_BREAK
case 40:
YY_RULE_SETUP
#line 121 "ptx.l"
TC; ptx_lval.int_value = ST_OP; return OPCODE;
	YY_BREAK
case 41:
YY_RULE_SETUP
#line 122 "ptx.l"
TC; ptx_lval.int_value = ST_OP; return OPCODE;
	YY_BREAK
case 42:
YY_RULE_SETUP
#line 123 "ptx.l"
TC; ptx_lval.int_value = SUB_OP; return OPCODE;
	YY_BREAK
case 43:
YY_RULE_SETUP
#line 124 "ptx.l"
TC; BEGIN(NOT_OPCODE); ptx_lval.int_value = TEX_OP; return OPCODE;
	YY_BREAK
case 44:
YY_RULE_SETUP
#line 125 "ptx.l"
TC; ptx_lval.int_value = TRAP_OP; return OPCODE;
	YY_BREAK
case 45:
YY_RULE_SETUP
#line 126 "ptx.l"
TC; ptx_lval.int_value = VOTE_OP; return OPCODE;
	YY_BREAK
case 46:
YY_RULE_SETUP
#line 127 "ptx.l"
TC; ptx_lval.int_value = XOR_OP; return OPCODE;
	YY_BREAK
case 47:
YY_RULE_SETUP
#line 128 "ptx.l"
TC; ptx_lval.int_value = MEMBAR_OP; return OPCODE;
	YY_BREAK
case 48:
YY_RULE_SETUP
#line 129 "ptx.l"
TC; ptx_lval.int_value = RED_OP; return OPCODE;
	YY_BREAK
case 49:
YY_RULE_SETUP
#line 130 "ptx.l"
TC; ptx_lval.int_value = BRKPT_OP; return OPCODE;
	YY_BREAK
case 50:
YY_RULE_SETUP
#line 131 "ptx.l"
TC; ptx_lval.int_value = ADDC_OP; return OPCODE;
	YY_BREAK

case 51:
YY_RULE_SETUP
#line 135 "ptx.l"
TC; return ALIGN_DIRECTIVE;
	YY_BREAK
case 52:
YY_RULE_SETUP
#line 136 "ptx.l"
TC; return BYTE_DIRECTIVE;
	YY_BREAK
case 53:
YY_RULE_SETUP
#line 137 "ptx.l"
TC; return CONST_DIRECTIVE;
	YY_BREAK
case 54:
YY_RULE_SETUP
#line 138 "ptx.l"
TC; return CONST_DIRECTIVE;
	YY_BREAK
case 55:
YY_RULE_SETUP
#line 139 "ptx.l"
TC; return ENTRY_DIRECTIVE;
	YY_BREAK
case 56:
YY_RULE_SETUP
#line 140 "ptx.l"
TC; return EXTERN_DIRECTIVE;
	YY_BREAK
case 57:
YY_RULE_SETUP
#line 141 "ptx.l"
TC; return FILE_DIRECTIVE;
	YY_BREAK
case 58:
YY_RULE_SETUP
#line 142 "ptx.l"
TC; return FUNC_DIRECTIVE;
	YY_BREAK
case 59:
YY_RULE_SETUP
#line 143 "ptx.l"
TC; return GLOBAL_DIRECTIVE;
	YY_BREAK
case 60:
YY_RULE_SETUP
#line 144 "ptx.l"
TC; return LOCAL_DIRECTIVE;
	YY_BREAK
case 61:
YY_RULE_SETUP
#line 145 "ptx.l"
TC; return LOC_DIRECTIVE;
	YY_BREAK
case 62:
YY_RULE_SETUP
#line 146 "ptx.l"
TC; return PARAM_DIRECTIVE;
	YY_BREAK
case 63:
YY_RULE_SETUP
#line 147 "ptx.l"
TC; return REG_DIRECTIVE;
	YY_BREAK
case 64:
YY_RULE_SETUP
#line 148 "ptx.l"
TC; return SECTION_DIRECTIVE;
	YY_BREAK
case 65:
YY_RULE_SETUP
#line 149 "ptx.l"
TC; return SHARED_DIRECTIVE;
	YY_BREAK
case 66:
YY_RULE_SETUP
#line 150 "ptx.l"
TC; return SREG_DIRECTIVE;
	YY_BREAK
case 67:
YY_RULE_SETUP
#line 151 "ptx.l"
TC; return STRUCT_DIRECTIVE;
	YY_BREAK
case 68:
YY_RULE_SETUP
#line 152 "ptx.l"
TC; return SURF_DIRECTIVE;
	YY_BREAK
case 69:
YY_RULE_SETUP
#line 153 "ptx.l"
TC; return TARGET_DIRECTIVE;
	YY_BREAK
case 70:
YY_RULE_SETUP
#line 154 "ptx.l"
TC; BEGIN(NOT_OPCODE); return TEX_DIRECTIVE;
	YY_BREAK
case 71:
YY_RULE_SETUP
#line 155 "ptx.l"
TC; return UNION_DIRECTIVE;
	YY_BREAK
case 72:
YY_RULE_SETUP
#line 156 "ptx.l"
TC; return VERSION_DIRECTIVE;
	YY_BREAK
case 73:
YY_RULE_SETUP
#line 157 "ptx.l"
TC; return VISIBLE_DIRECTIVE;
	YY_BREAK
case 74:
YY_RULE_SETUP
#line 159 "ptx.l"
TC; return MAXNTID_DIRECTIVE;
	YY_BREAK
case 75:
YY_RULE_SETUP
#line 161 "ptx.l"
TC; ptx_lval.int_value = CLOCK_ID; return SPECIAL_REGISTER;
	YY_BREAK
case 76:
YY_RULE_SETUP
#line 162 "ptx.l"
TC; ptx_lval.int_value = CTA_ID; return SPECIAL_REGISTER;
	YY_BREAK
case 77:
YY_RULE_SETUP
#line 163 "ptx.l"
TC; ptx_lval.int_value = NTID_ID; return SPECIAL_REGISTER;
	YY_BREAK
case 78:
YY_RULE_SETUP
#line 164 "ptx.l"
TC; ptx_lval.int_value = GRIDID_ID; return SPECIAL_REGISTER;
	YY_BREAK
case 79:
YY_RULE_SETUP
#line 165 "ptx.l"
TC; ptx_lval.int_value = NCTAID_ID; return SPECIAL_REGISTER;
	YY_BREAK
case 80:
YY_RULE_SETUP
#line 166 "ptx.l"
TC; ptx_lval.int_value = TID_ID; return SPECIAL_REGISTER;
	YY_BREAK
case 81:
YY_RULE_SETUP
#line 168 "ptx.l"
TC; ptx_lval.string_value = strdup(yytext); /*printf("\n<<identifier=\"%s\">>\n", yytext); fflush(stdout);*/ return IDENTIFIER;
	YY_BREAK
case 82:
YY_RULE_SETUP
#line 170 "ptx.l"
TC; sscanf(yytext,"%lf", &ptx_lval.double_value); return DOUBLE_OPERAND;
	YY_BREAK
case 83:
YY_RULE_SETUP
#line 171 "ptx.l"
TC; ptx_lval.int_value =  atoi(yytext); return INT_OPERAND;
	YY_BREAK
case 84:
YY_RULE_SETUP
#line 172 "ptx.l"
TC;  sscanf(yytext,"%x", &ptx_lval.int_value); return INT_OPERAND;
	YY_BREAK
case 85:
YY_RULE_SETUP
#line 173 "ptx.l"
TC; sscanf(yytext+2,"%x", (unsigned*)(void*)&ptx_lval.float_value); return FLOAT_OPERAND;
	YY_BREAK
case 86:
YY_RULE_SETUP
#line 174 "ptx.l"
TC; sscanf(yytext+2,"%Lx", (unsigned long long*)(void*)&ptx_lval.double_value); return DOUBLE_OPERAND;
	YY_BREAK
case 87:
YY_RULE_SETUP
#line 176 "ptx.l"
TC;  return S8_TYPE;
	YY_BREAK
case 88:
YY_RULE_SETUP
#line 177 "ptx.l"
TC;  return S16_TYPE;
	YY_BREAK
case 89:
YY_RULE_SETUP
#line 178 "ptx.l"
TC;  return S32_TYPE;
	YY_BREAK
case 90:
YY_RULE_SETUP
#line 179 "ptx.l"
TC;  return S64_TYPE;
	YY_BREAK
case 91:
YY_RULE_SETUP
#line 180 "ptx.l"
TC;  return U8_TYPE;
	YY_BREAK
case 92:
YY_RULE_SETUP
#line 181 "ptx.l"
TC;  return U16_TYPE;
	YY_BREAK
case 93:
YY_RULE_SETUP
#line 182 "ptx.l"
TC;  return U32_TYPE;
	YY_BREAK
case 94:
YY_RULE_SETUP
#line 183 "ptx.l"
TC;  return U64_TYPE;
	YY_BREAK
case 95:
YY_RULE_SETUP
#line 184 "ptx.l"
TC;  return F16_TYPE;
	YY_BREAK
case 96:
YY_RULE_SETUP
#line 185 "ptx.l"
TC;  return F32_TYPE;
	YY_BREAK
case 97:
YY_RULE_SETUP
#line 186 "ptx.l"
TC;  return F64_TYPE;
	YY_BREAK
case 98:
YY_RULE_SETUP
#line 187 "ptx.l"
TC;  return B8_TYPE;
	YY_BREAK
case 99:
YY_RULE_SETUP
#line 188 "ptx.l"
TC;  return B16_TYPE;
	YY_BREAK
case 100:
YY_RULE_SETUP
#line 189 "ptx.l"
TC;  return B32_TYPE;
	YY_BREAK
case 101:
YY_RULE_SETUP
#line 190 "ptx.l"
TC;  return B64_TYPE;
	YY_BREAK
case 102:
YY_RULE_SETUP
#line 191 "ptx.l"
TC;  return PRED_TYPE;
	YY_BREAK
case 103:
YY_RULE_SETUP
#line 193 "ptx.l"
TC; return V2_TYPE;
	YY_BREAK
case 104:
YY_RULE_SETUP
#line 194 "ptx.l"
TC; return V3_TYPE;
	YY_BREAK
case 105:
YY_RULE_SETUP
#line 195 "ptx.l"
TC; return V4_TYPE;
	YY_BREAK
case 106:
YY_RULE_SETUP
#line 197 "ptx.l"
TC; return EQU_OPTION;
	YY_BREAK
case 107:
YY_RULE_SETUP
#line 198 "ptx.l"
TC; return NEU_OPTION;
	YY_BREAK
case 108:
YY_RULE_SETUP
#line 199 "ptx.l"
TC; return LTU_OPTION;
	YY_BREAK
case 109:
YY_RULE_SETUP
#line 200 "ptx.l"
TC; return LEU_OPTION;
	YY_BREAK
case 110:
YY_RULE_SETUP
#line 201 "ptx.l"
TC; return GTU_OPTION;
	YY_BREAK
case 111:
YY_RULE_SETUP
#line 202 "ptx.l"
TC; return GEU_OPTION;
	YY_BREAK
case 112:
YY_RULE_SETUP
#line 203 "ptx.l"
TC; return NUM_OPTION;
	YY_BREAK
case 113:
YY_RULE_SETUP
#line 204 "ptx.l"
TC; return NAN_OPTION;
	YY_BREAK
case 114:
YY_RULE_SETUP
#line 206 "ptx.l"
TC; return SAT_OPTION;
	YY_BREAK
case 115:
YY_RULE_SETUP
#line 208 "ptx.l"
TC; return EQ_OPTION;
	YY_BREAK
case 116:
YY_RULE_SETUP
#line 209 "ptx.l"
TC; return NE_OPTION;
	YY_BREAK
case 117:
YY_RULE_SETUP
#line 210 "ptx.l"
TC; return LT_OPTION;
	YY_BREAK
case 118:
YY_RULE_SETUP
#line 211 "ptx.l"
TC; return LE_OPTION;
	YY_BREAK
case 119:
YY_RULE_SETUP
#line 212 "ptx.l"
TC; return GT_OPTION;
	YY_BREAK
case 120:
YY_RULE_SETUP
#line 213 "ptx.l"
TC; return GE_OPTION;
	YY_BREAK
case 121:
YY_RULE_SETUP
#line 215 "ptx.l"
TC; return LO_OPTION;
	YY_BREAK
case 122:
YY_RULE_SETUP
#line 216 "ptx.l"
TC; return LS_OPTION;
	YY_BREAK
case 123:
YY_RULE_SETUP
#line 217 "ptx.l"
TC; return HI_OPTION;
	YY_BREAK
case 124:
YY_RULE_SETUP
#line 218 "ptx.l"
TC; return HS_OPTION;
	YY_BREAK
case 125:
YY_RULE_SETUP
#line 221 "ptx.l"
TC; return RNI_OPTION;
	YY_BREAK
case 126:
YY_RULE_SETUP
#line 222 "ptx.l"
TC; return RZI_OPTION;
	YY_BREAK
case 127:
YY_RULE_SETUP
#line 223 "ptx.l"
TC; return RMI_OPTION;
	YY_BREAK
case 128:
YY_RULE_SETUP
#line 224 "ptx.l"
TC; return RPI_OPTION;
	YY_BREAK
case 129:
YY_RULE_SETUP
#line 226 "ptx.l"
TC; return RN_OPTION;
	YY_BREAK
case 130:
YY_RULE_SETUP
#line 227 "ptx.l"
TC; return RZ_OPTION;
	YY_BREAK
case 131:
YY_RULE_SETUP
#line 228 "ptx.l"
TC; return RM_OPTION;
	YY_BREAK
case 132:
YY_RULE_SETUP
#line 229 "ptx.l"
TC; return RP_OPTION;
	YY_BREAK
case 133:
YY_RULE_SETUP
#line 231 "ptx.l"
TC; return FTZ_OPTION;
	YY_BREAK
case 134:
YY_RULE_SETUP
#line 233 "ptx.l"
TC; return WIDE_OPTION;
	YY_BREAK
case 135:
YY_RULE_SETUP
#line 234 "ptx.l"
TC; return UNI_OPTION;
	YY_BREAK
case 136:
YY_RULE_SETUP
#line 236 "ptx.l"
TC; return APPROX_OPTION;
	YY_BREAK
case 137:
YY_RULE_SETUP
#line 237 "ptx.l"
TC; return FULL_OPTION;
	YY_BREAK
case 138:
YY_RULE_SETUP
#line 239 "ptx.l"
TC; return ANY_OPTION;
	YY_BREAK
case 139:
YY_RULE_SETUP
#line 240 "ptx.l"
TC; return ALL_OPTION;
	YY_BREAK
case 140:
YY_RULE_SETUP
#line 241 "ptx.l"
TC; return GLOBAL_OPTION;
	YY_BREAK
case 141:
YY_RULE_SETUP
#line 242 "ptx.l"
TC; return CTA_OPTION;
	YY_BREAK
case 142:
YY_RULE_SETUP
#line 244 "ptx.l"
TC; return ATOMIC_AND;
	YY_BREAK
case 143:
YY_RULE_SETUP
#line 245 "ptx.l"
TC; return ATOMIC_OR;
	YY_BREAK
case 144:
YY_RULE_SETUP
#line 246 "ptx.l"
TC; return ATOMIC_XOR;
	YY_BREAK
case 145:
YY_RULE_SETUP
#line 247 "ptx.l"
TC; return ATOMIC_CAS;
	YY_BREAK
case 146:
YY_RULE_SETUP
#line 248 "ptx.l"
TC; return ATOMIC_EXCH;
	YY_BREAK
case 147:
YY_RULE_SETUP
#line 249 "ptx.l"
TC; return ATOMIC_ADD;
	YY_BREAK
case 148:
YY_RULE_SETUP
#line 250 "ptx.l"
TC; return ATOMIC_INC;
	YY_BREAK
case 149:
YY_RULE_SETUP
#line 251 "ptx.l"
TC; return ATOMIC_DEC;
	YY_BREAK
case 150:
YY_RULE_SETUP
#line 252 "ptx.l"
TC; return ATOMIC_MIN;
	YY_BREAK
case 151:
YY_RULE_SETUP
#line 253 "ptx.l"
TC; return ATOMIC_MAX;
	YY_BREAK
case 152:
YY_RULE_SETUP
#line 255 "ptx.l"
TC; return GEOM_MODIFIER_1D;
	YY_BREAK
case 153:
YY_RULE_SETUP
#line 256 "ptx.l"
TC; return GEOM_MODIFIER_2D;
	YY_BREAK
case 154:
YY_RULE_SETUP
#line 257 "ptx.l"
TC; return GEOM_MODIFIER_3D;
	YY_BREAK
case 155:
YY_RULE_SETUP
#line 259 "ptx.l"
TC; ptx_lval.int_value = 0; return DIMENSION_MODIFIER;
	YY_BREAK
case 156:
YY_RULE_SETUP
#line 260 "ptx.l"
TC; ptx_lval.int_value = 1; return DIMENSION_MODIFIER;
	YY_BREAK
case 157:
YY_RULE_SETUP
#line 261 "ptx.l"
TC; ptx_lval.int_value = 2; return DIMENSION_MODIFIER;
	YY_BREAK
case 158:
YY_RULE_SETUP
#line 262 "ptx.l"
TC; ptx_lval.int_value = 0; return DIMENSION_MODIFIER;
	YY_BREAK
case 159:
YY_RULE_SETUP
#line 263 "ptx.l"
TC; ptx_lval.int_value = 1; return DIMENSION_MODIFIER;
	YY_BREAK
case 160:
YY_RULE_SETUP
#line 264 "ptx.l"
TC; ptx_lval.int_value = 2; return DIMENSION_MODIFIER;
	YY_BREAK
case 161:
YY_RULE_SETUP
#line 266 "ptx.l"
TC; return PLUS;
	YY_BREAK
case 162:
YY_RULE_SETUP
#line 267 "ptx.l"
TC; return COMMA;
	YY_BREAK
case 163:
YY_RULE_SETUP
#line 268 "ptx.l"
TC; return PRED;
	YY_BREAK
case 164:
YY_RULE_SETUP
#line 269 "ptx.l"
TC; return LEFT_SQUARE_BRACKET;
	YY_BREAK
case 165:
YY_RULE_SETUP
#line 270 "ptx.l"
TC; return RIGHT_SQUARE_BRACKET;
	YY_BREAK
case 166:
YY_RULE_SETUP
#line 271 "ptx.l"
TC; return LEFT_ANGLE_BRACKET;
	YY_BREAK
case 167:
YY_RULE_SETUP
#line 272 "ptx.l"
TC; return RIGHT_ANGLE_BRACKET;
	YY_BREAK
case 168:
YY_RULE_SETUP
#line 273 "ptx.l"
TC; return LEFT_PAREN;
	YY_BREAK
case 169:
YY_RULE_SETUP
#line 274 "ptx.l"
TC; return RIGHT_PAREN;
	YY_BREAK
case 170:
YY_RULE_SETUP
#line 275 "ptx.l"
TC; return COLON;
	YY_BREAK
case 171:
YY_RULE_SETUP
#line 276 "ptx.l"
TC; BEGIN(INITIAL); return SEMI_COLON;
	YY_BREAK
case 172:
YY_RULE_SETUP
#line 277 "ptx.l"
TC; return EXCLAMATION;
	YY_BREAK
case 173:
YY_RULE_SETUP
#line 278 "ptx.l"
TC; return EQUALS;
	YY_BREAK
case 174:
YY_RULE_SETUP
#line 279 "ptx.l"
TC; return LEFT_BRACE;
	YY_BREAK
case 175:
YY_RULE_SETUP
#line 280 "ptx.l"
TC; return RIGHT_BRACE;
	YY_BREAK
case 176:
YY_RULE_SETUP
#line 281 "ptx.l"
TC; return PERIOD;
	YY_BREAK
case 177:
YY_RULE_SETUP
#line 283 "ptx.l"
TC;	// eat single
	YY_BREAK
case 178:
YY_RULE_SETUP
#line 285 "ptx.l"
col=0; strncpy(linebuf, yytext + 1, 1024); yyless( 1 );
	YY_BREAK
case 179:
YY_RULE_SETUP
#line 287 "ptx.l"
TC;
	YY_BREAK
case 180:
YY_RULE_SETUP
#line 288 "ptx.l"
TC;
	YY_BREAK


case 181:
YY_RULE_SETUP
#line 294 "ptx.l"
BEGIN(IN_COMMENT);
	YY_BREAK


case 182:
YY_RULE_SETUP
#line 297 "ptx.l"
BEGIN(INITIAL);
	YY_BREAK
case 183:
YY_RULE_SETUP
#line 298 "ptx.l"
// eat comment in chunks
	YY_BREAK
case 184:
YY_RULE_SETUP
#line 299 "ptx.l"
// eat the lone star
	YY_BREAK
case 185:
YY_RULE_SETUP
#line 300 "ptx.l"
TC; 
	YY_BREAK


case 186:
YY_RULE_SETUP
#line 304 "ptx.l"
BEGIN(IN_STRING);
	YY_BREAK


case 187:
YY_RULE_SETUP
#line 307 "ptx.l"
TC; BEGIN(INITIAL); return STRING;
	YY_BREAK
case 188:
YY_RULE_SETUP
#line 308 "ptx.l"
TC; ptx_lval.string_value = strdup(yytext); 
	YY_BREAK

case 189:
YY_RULE_SETUP
#line 311 "ptx.l"
TC; ptx_error((const char*)NULL);
	YY_BREAK
case 190:
YY_RULE_SETUP
#line 313 "ptx.l"
ECHO;
	YY_BREAK
#line 2279 "lex.ptx_.c"
			case YY_STATE_EOF(INITIAL):
			case YY_STATE_EOF(IN_STRING):
			case YY_STATE_EOF(IN_COMMENT):
			case YY_STATE_EOF(NOT_OPCODE):
				yyterminate();

	case YY_END_OF_BUFFER:
		{
		/* Amount of text matched not including the EOB char. */
		int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;

		/* Undo the effects of YY_DO_BEFORE_ACTION. */
		*yy_cp = yy_hold_char;
		YY_RESTORE_YY_MORE_OFFSET

		if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
			{
			/* We're scanning a new file or input source.  It's
			 * possible that this happened because the user
			 * just pointed yyin at a new source and called
			 * yylex().  If so, then we have to assure
			 * consistency between yy_current_buffer and our
			 * globals.  Here is the right place to do so, because
			 * this is the first action (other than possibly a
			 * back-up) that will match for the new input source.
			 */
			yy_n_chars = yy_current_buffer->yy_n_chars;
			yy_current_buffer->yy_input_file = yyin;
			yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
			}

		/* Note that here we test for yy_c_buf_p "<=" to the position
		 * of the first EOB in the buffer, since yy_c_buf_p will
		 * already have been incremented past the NUL character
		 * (since all states make transitions on EOB to the
		 * end-of-buffer state).  Contrast this with the test
		 * in input().
		 */
		if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
			{ /* This was really a NUL. */
			yy_state_type yy_next_state;

			yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;

			yy_current_state = yy_get_previous_state();

			/* Okay, we're now positioned to make the NUL
			 * transition.  We couldn't have
			 * yy_get_previous_state() go ahead and do it
			 * for us because it doesn't know how to deal
			 * with the possibility of jamming (and we don't
			 * want to build jamming into it because then it
			 * will run more slowly).
			 */

			yy_next_state = yy_try_NUL_trans( yy_current_state );

			yy_bp = yytext_ptr + YY_MORE_ADJ;

			if ( yy_next_state )
				{
				/* Consume the NUL. */
				yy_cp = ++yy_c_buf_p;
				yy_current_state = yy_next_state;
				goto yy_match;
				}

			else
				{
				yy_cp = yy_c_buf_p;
				goto yy_find_action;
				}
			}

		else switch ( yy_get_next_buffer() )
			{
			case EOB_ACT_END_OF_FILE:
				{
				yy_did_buffer_switch_on_eof = 0;

				if ( yywrap() )
					{
					/* Note: because we've taken care in
					 * yy_get_next_buffer() to have set up
					 * yytext, we can now set up
					 * yy_c_buf_p so that if some total
					 * hoser (like flex itself) wants to
					 * call the scanner after we return the
					 * YY_NULL, it'll still work - another
					 * YY_NULL will get returned.
					 */
					yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;

					yy_act = YY_STATE_EOF(YY_START);
					goto do_action;
					}

				else
					{
					if ( ! yy_did_buffer_switch_on_eof )
						YY_NEW_FILE;
					}
				break;
				}

			case EOB_ACT_CONTINUE_SCAN:
				yy_c_buf_p =
					yytext_ptr + yy_amount_of_matched_text;

				yy_current_state = yy_get_previous_state();

				yy_cp = yy_c_buf_p;
				yy_bp = yytext_ptr + YY_MORE_ADJ;
				goto yy_match;

			case EOB_ACT_LAST_MATCH:
				yy_c_buf_p =
				&yy_current_buffer->yy_ch_buf[yy_n_chars];

				yy_current_state = yy_get_previous_state();

				yy_cp = yy_c_buf_p;
				yy_bp = yytext_ptr + YY_MORE_ADJ;
				goto yy_find_action;
			}
		break;
		}

	default:
		YY_FATAL_ERROR(
			"fatal flex scanner internal error--no action found" );
	} /* end of action switch */
		} /* end of scanning one token */
	} /* end of yylex */


/* yy_get_next_buffer - try to read in a new buffer
 *
 * Returns a code representing an action:
 *	EOB_ACT_LAST_MATCH -
 *	EOB_ACT_CONTINUE_SCAN - continue scanning from current position
 *	EOB_ACT_END_OF_FILE - end of file
 */

static int yy_get_next_buffer()
	{
	register char *dest = yy_current_buffer->yy_ch_buf;
	register char *source = yytext_ptr;
	register int number_to_move, i;
	int ret_val;

	if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
		YY_FATAL_ERROR(
		"fatal flex scanner internal error--end of buffer missed" );

	if ( yy_current_buffer->yy_fill_buffer == 0 )
		{ /* Don't try to fill the buffer, so this is an EOF. */
		if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
			{
			/* We matched a single character, the EOB, so
			 * treat this as a final EOF.
			 */
			return EOB_ACT_END_OF_FILE;
			}

		else
			{
			/* We matched some text prior to the EOB, first
			 * process it.
			 */
			return EOB_ACT_LAST_MATCH;
			}
		}

	/* Try to read more data. */

	/* First move last chars to start of buffer. */
	number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;

	for ( i = 0; i < number_to_move; ++i )
		*(dest++) = *(source++);

	if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
		/* don't do the read, it's not guaranteed to return an EOF,
		 * just force an EOF
		 */
		yy_current_buffer->yy_n_chars = yy_n_chars = 0;

	else
		{
		int num_to_read =
			yy_current_buffer->yy_buf_size - number_to_move - 1;

		while ( num_to_read <= 0 )
			{ /* Not enough room in the buffer - grow it. */
#ifdef YY_USES_REJECT
			YY_FATAL_ERROR(
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
#else

			/* just a shorter name for the current buffer */
			YY_BUFFER_STATE b = yy_current_buffer;

			int yy_c_buf_p_offset =
				(int) (yy_c_buf_p - b->yy_ch_buf);

			if ( b->yy_is_our_buffer )
				{
				int new_size = b->yy_buf_size * 2;

				if ( new_size <= 0 )
					b->yy_buf_size += b->yy_buf_size / 8;
				else
					b->yy_buf_size *= 2;

				b->yy_ch_buf = (char *)
					/* Include room in for 2 EOB chars. */
					yy_flex_realloc( (void *) b->yy_ch_buf,
							 b->yy_buf_size + 2 );
				}
			else
				/* Can't grow it, we don't own it. */
				b->yy_ch_buf = 0;

			if ( ! b->yy_ch_buf )
				YY_FATAL_ERROR(
				"fatal error - scanner input buffer overflow" );

			yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];

			num_to_read = yy_current_buffer->yy_buf_size -
						number_to_move - 1;
#endif
			}

		if ( num_to_read > YY_READ_BUF_SIZE )
			num_to_read = YY_READ_BUF_SIZE;

		/* Read in more data. */
		YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
			yy_n_chars, num_to_read );

		yy_current_buffer->yy_n_chars = yy_n_chars;
		}

	if ( yy_n_chars == 0 )
		{
		if ( number_to_move == YY_MORE_ADJ )
			{
			ret_val = EOB_ACT_END_OF_FILE;
			yyrestart( yyin );
			}

		else
			{
			ret_val = EOB_ACT_LAST_MATCH;
			yy_current_buffer->yy_buffer_status =
				YY_BUFFER_EOF_PENDING;
			}
		}

	else
		ret_val = EOB_ACT_CONTINUE_SCAN;

	yy_n_chars += number_to_move;
	yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
	yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;

	yytext_ptr = &yy_current_buffer->yy_ch_buf[0];

	return ret_val;
	}


/* yy_get_previous_state - get the state just before the EOB char was reached */

static yy_state_type yy_get_previous_state()
	{
	register yy_state_type yy_current_state;
	register char *yy_cp;

	yy_current_state = yy_start;
	yy_state_ptr = yy_state_buf;
	*yy_state_ptr++ = yy_current_state;

	for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
		{
		register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
		while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
			{
			yy_current_state = (int) yy_def[yy_current_state];
			if ( yy_current_state >= 765 )
				yy_c = yy_meta[(unsigned int) yy_c];
			}
		yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
		*yy_state_ptr++ = yy_current_state;
		}

	return yy_current_state;
	}


/* yy_try_NUL_trans - try to make a transition on the NUL character
 *
 * synopsis
 *	next_state = yy_try_NUL_trans( current_state );
 */

#ifdef YY_USE_PROTOS
static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
#else
static yy_state_type yy_try_NUL_trans( yy_current_state )
yy_state_type yy_current_state;
#endif
	{
	register int yy_is_jam;

	register YY_CHAR yy_c = 1;
	while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
		{
		yy_current_state = (int) yy_def[yy_current_state];
		if ( yy_current_state >= 765 )
			yy_c = yy_meta[(unsigned int) yy_c];
		}
	yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
	yy_is_jam = (yy_current_state == 764);
	if ( ! yy_is_jam )
		*yy_state_ptr++ = yy_current_state;

	return yy_is_jam ? 0 : yy_current_state;
	}


#ifndef YY_NO_UNPUT
#ifdef YY_USE_PROTOS
static void yyunput( int c, register char *yy_bp )
#else
static void yyunput( c, yy_bp )
int c;
register char *yy_bp;
#endif
	{
	register char *yy_cp = yy_c_buf_p;

	/* undo effects of setting up yytext */
	*yy_cp = yy_hold_char;

	if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
		{ /* need to shift things up to make room */
		/* +2 for EOB chars. */
		register int number_to_move = yy_n_chars + 2;
		register char *dest = &yy_current_buffer->yy_ch_buf[
					yy_current_buffer->yy_buf_size + 2];
		register char *source =
				&yy_current_buffer->yy_ch_buf[number_to_move];

		while ( source > yy_current_buffer->yy_ch_buf )
			*--dest = *--source;

		yy_cp += (int) (dest - source);
		yy_bp += (int) (dest - source);
		yy_current_buffer->yy_n_chars =
			yy_n_chars = yy_current_buffer->yy_buf_size;

		if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
			YY_FATAL_ERROR( "flex scanner push-back overflow" );
		}

	*--yy_cp = (char) c;

	if ( c == '\n' )
		--yylineno;

	yytext_ptr = yy_bp;
	yy_hold_char = *yy_cp;
	yy_c_buf_p = yy_cp;
	}
#endif	/* ifndef YY_NO_UNPUT */


#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput()
#else
static int input()
#endif
	{
	int c;

	*yy_c_buf_p = yy_hold_char;

	if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
		{
		/* yy_c_buf_p now points to the character we want to return.
		 * If this occurs *before* the EOB characters, then it's a
		 * valid NUL; if not, then we've hit the end of the buffer.
		 */
		if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
			/* This was really a NUL. */
			*yy_c_buf_p = '\0';

		else
			{ /* need more input */
			int offset = yy_c_buf_p - yytext_ptr;
			++yy_c_buf_p;

			switch ( yy_get_next_buffer() )
				{
				case EOB_ACT_LAST_MATCH:
					/* This happens because yy_g_n_b()
					 * sees that we've accumulated a
					 * token and flags that we need to
					 * try matching the token before
					 * proceeding.  But for input(),
					 * there's no matching to consider.
					 * So convert the EOB_ACT_LAST_MATCH
					 * to EOB_ACT_END_OF_FILE.
					 */

					/* Reset buffer status. */
					yyrestart( yyin );

					/* fall through */

				case EOB_ACT_END_OF_FILE:
					{
					if ( yywrap() )
						return EOF;

					if ( ! yy_did_buffer_switch_on_eof )
						YY_NEW_FILE;
#ifdef __cplusplus
					return yyinput();
#else
					return input();
#endif
					}

				case EOB_ACT_CONTINUE_SCAN:
					yy_c_buf_p = yytext_ptr + offset;
					break;
				}
			}
		}

	c = *(unsigned char *) yy_c_buf_p;	/* cast for 8-bit char's */
	*yy_c_buf_p = '\0';	/* preserve yytext */
	yy_hold_char = *++yy_c_buf_p;

	if ( c == '\n' )
		++yylineno;

	return c;
	}
#endif /* YY_NO_INPUT */

#ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file )
#else
void yyrestart( input_file )
FILE *input_file;
#endif
	{
	if ( ! yy_current_buffer )
		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );

	yy_init_buffer( yy_current_buffer, input_file );
	yy_load_buffer_state();
	}


#ifdef YY_USE_PROTOS
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
#else
void yy_switch_to_buffer( new_buffer )
YY_BUFFER_STATE new_buffer;
#endif
	{
	if ( yy_current_buffer == new_buffer )
		return;

	if ( yy_current_buffer )
		{
		/* Flush out information for old buffer. */
		*yy_c_buf_p = yy_hold_char;
		yy_current_buffer->yy_buf_pos = yy_c_buf_p;
		yy_current_buffer->yy_n_chars = yy_n_chars;
		}

	yy_current_buffer = new_buffer;
	yy_load_buffer_state();

	/* We don't actually know whether we did this switch during
	 * EOF (yywrap()) processing, but the only time this flag
	 * is looked at is after yywrap() is called, so it's safe
	 * to go ahead and always set it.
	 */
	yy_did_buffer_switch_on_eof = 1;
	}


#ifdef YY_USE_PROTOS
void yy_load_buffer_state( void )
#else
void yy_load_buffer_state()
#endif
	{
	yy_n_chars = yy_current_buffer->yy_n_chars;
	yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
	yyin = yy_current_buffer->yy_input_file;
	yy_hold_char = *yy_c_buf_p;
	}


#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
#else
YY_BUFFER_STATE yy_create_buffer( file, size )
FILE *file;
int size;
#endif
	{
	YY_BUFFER_STATE b;

	b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
	if ( ! b )
		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

	b->yy_buf_size = size;

	/* yy_ch_buf has to be 2 characters longer than the size given because
	 * we need to put in 2 end-of-buffer characters.
	 */
	b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
	if ( ! b->yy_ch_buf )
		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

	b->yy_is_our_buffer = 1;

	yy_init_buffer( b, file );

	return b;
	}


#ifdef YY_USE_PROTOS
void yy_delete_buffer( YY_BUFFER_STATE b )
#else
void yy_delete_buffer( b )
YY_BUFFER_STATE b;
#endif
	{
	if ( ! b )
		return;

	if ( b == yy_current_buffer )
		yy_current_buffer = (YY_BUFFER_STATE) 0;

	if ( b->yy_is_our_buffer )
		yy_flex_free( (void *) b->yy_ch_buf );

	yy_flex_free( (void *) b );
	}



#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
#else
void yy_init_buffer( b, file )
YY_BUFFER_STATE b;
FILE *file;
#endif


	{
	yy_flush_buffer( b );

	b->yy_input_file = file;
	b->yy_fill_buffer = 1;

#if YY_ALWAYS_INTERACTIVE
	b->yy_is_interactive = 1;
#else
#if YY_NEVER_INTERACTIVE
	b->yy_is_interactive = 0;
#else
	b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
#endif
#endif
	}


#ifdef YY_USE_PROTOS
void yy_flush_buffer( YY_BUFFER_STATE b )
#else
void yy_flush_buffer( b )
YY_BUFFER_STATE b;
#endif

	{
	if ( ! b )
		return;

	b->yy_n_chars = 0;

	/* We always need two end-of-buffer characters.  The first causes
	 * a transition to the end-of-buffer state.  The second causes
	 * a jam in that state.
	 */
	b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
	b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;

	b->yy_buf_pos = &b->yy_ch_buf[0];

	b->yy_at_bol = 1;
	b->yy_buffer_status = YY_BUFFER_NEW;

	if ( b == yy_current_buffer )
		yy_load_buffer_state();
	}


#ifndef YY_NO_SCAN_BUFFER
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
#else
YY_BUFFER_STATE yy_scan_buffer( base, size )
char *base;
yy_size_t size;
#endif
	{
	YY_BUFFER_STATE b;

	if ( size < 2 ||
	     base[size-2] != YY_END_OF_BUFFER_CHAR ||
	     base[size-1] != YY_END_OF_BUFFER_CHAR )
		/* They forgot to leave room for the EOB's. */
		return 0;

	b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
	if ( ! b )
		YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );

	b->yy_buf_size = size - 2;	/* "- 2" to take care of EOB's */
	b->yy_buf_pos = b->yy_ch_buf = base;
	b->yy_is_our_buffer = 0;
	b->yy_input_file = 0;
	b->yy_n_chars = b->yy_buf_size;
	b->yy_is_interactive = 0;
	b->yy_at_bol = 1;
	b->yy_fill_buffer = 0;
	b->yy_buffer_status = YY_BUFFER_NEW;

	yy_switch_to_buffer( b );

	return b;
	}
#endif


#ifndef YY_NO_SCAN_STRING
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
#else
YY_BUFFER_STATE yy_scan_string( yy_str )
yyconst char *yy_str;
#endif
	{
	int len;
	for ( len = 0; yy_str[len]; ++len )
		;

	return yy_scan_bytes( yy_str, len );
	}
#endif


#ifndef YY_NO_SCAN_BYTES
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
#else
YY_BUFFER_STATE yy_scan_bytes( bytes, len )
yyconst char *bytes;
int len;
#endif
	{
	YY_BUFFER_STATE b;
	char *buf;
	yy_size_t n;
	int i;

	/* Get memory for full buffer, including space for trailing EOB's. */
	n = len + 2;
	buf = (char *) yy_flex_alloc( n );
	if ( ! buf )
		YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );

	for ( i = 0; i < len; ++i )
		buf[i] = bytes[i];

	buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;

	b = yy_scan_buffer( buf, n );
	if ( ! b )
		YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );

	/* It's okay to grow etc. this buffer, and we should throw it
	 * away when we're done.
	 */
	b->yy_is_our_buffer = 1;

	return b;
	}
#endif


#ifndef YY_NO_PUSH_STATE
#ifdef YY_USE_PROTOS
static void yy_push_state( int new_state )
#else
static void yy_push_state( new_state )
int new_state;
#endif
	{
	if ( yy_start_stack_ptr >= yy_start_stack_depth )
		{
		yy_size_t new_size;

		yy_start_stack_depth += YY_START_STACK_INCR;
		new_size = yy_start_stack_depth * sizeof( int );

		if ( ! yy_start_stack )
			yy_start_stack = (int *) yy_flex_alloc( new_size );

		else
			yy_start_stack = (int *) yy_flex_realloc(
					(void *) yy_start_stack, new_size );

		if ( ! yy_start_stack )
			YY_FATAL_ERROR(
			"out of memory expanding start-condition stack" );
		}

	yy_start_stack[yy_start_stack_ptr++] = YY_START;

	BEGIN(new_state);
	}
#endif


#ifndef YY_NO_POP_STATE
static void yy_pop_state()
	{
	if ( --yy_start_stack_ptr < 0 )
		YY_FATAL_ERROR( "start-condition stack underflow" );

	BEGIN(yy_start_stack[yy_start_stack_ptr]);
	}
#endif


#ifndef YY_NO_TOP_STATE
static int yy_top_state()
	{
	return yy_start_stack[yy_start_stack_ptr - 1];
	}
#endif

#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif

#ifdef YY_USE_PROTOS
static void yy_fatal_error( yyconst char msg[] )
#else
static void yy_fatal_error( msg )
char msg[];
#endif
	{
	(void) fprintf( stderr, "%s\n", msg );
	exit( YY_EXIT_FAILURE );
	}



/* Redefine yyless() so it works in section 3 code. */

#undef yyless
#define yyless(n) \
	do \
		{ \
		/* Undo effects of setting up yytext. */ \
		yytext[yyleng] = yy_hold_char; \
		yy_c_buf_p = yytext + n; \
		yy_hold_char = *yy_c_buf_p; \
		*yy_c_buf_p = '\0'; \
		yyleng = n; \
		} \
	while ( 0 )


/* Internal utility routines. */

#ifndef yytext_ptr
#ifdef YY_USE_PROTOS
static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
#else
static void yy_flex_strncpy( s1, s2, n )
char *s1;
yyconst char *s2;
int n;
#endif
	{
	register int i;
	for ( i = 0; i < n; ++i )
		s1[i] = s2[i];
	}
#endif

#ifdef YY_NEED_STRLEN
#ifdef YY_USE_PROTOS
static int yy_flex_strlen( yyconst char *s )
#else
static int yy_flex_strlen( s )
yyconst char *s;
#endif
	{
	register int n;
	for ( n = 0; s[n]; ++n )
		;

	return n;
	}
#endif


#ifdef YY_USE_PROTOS
static void *yy_flex_alloc( yy_size_t size )
#else
static void *yy_flex_alloc( size )
yy_size_t size;
#endif
	{
	return (void *) malloc( size );
	}

#ifdef YY_USE_PROTOS
static void *yy_flex_realloc( void *ptr, yy_size_t size )
#else
static void *yy_flex_realloc( ptr, size )
void *ptr;
yy_size_t size;
#endif
	{
	/* The cast to (char *) in the following accommodates both
	 * implementations that use char* generic pointers, and those
	 * that use void* generic pointers.  It works with the latter
	 * because both ANSI C and C++ allow castless assignment from
	 * any pointer type to void*, and deal with argument conversions
	 * as though doing an assignment.
	 */
	return (void *) realloc( (char *) ptr, size );
	}

#ifdef YY_USE_PROTOS
static void yy_flex_free( void *ptr )
#else
static void yy_flex_free( ptr )
void *ptr;
#endif
	{
	free( ptr );
	}

#if YY_MAIN
int main()
	{
	yylex();
	return 0;
	}
#endif
#line 313 "ptx.l"


extern int g_error_detected;
extern const char *g_filename;

int ptx_error( const char *s )
{
	int i;
	g_error_detected = 1;
	fflush(stdout);
	if( s != NULL )
		printf("%s:%u: Syntax error:\n\n", g_filename, ptx_lineno );
	printf("   %s\n", linebuf );
	printf("   ");
	for( i=0; i < col-1; i++ ) {
		if( linebuf[i] == '\t' ) printf("\t");
		else printf(" ");
	}
			
	printf("^\n\n");
	fflush(stdout);
	//exit(1);
	return 0;
}
